Skip to content

Commit

Permalink
Replace flake8 and black with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
srittau committed Mar 13, 2024
1 parent c76425e commit 2740a24
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 163 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
run: pip --disable-pip-version-check install -U poetry
- name: Install Python packages
run: poetry install
- name: Lint with flake8
- name: Lint with ruff
run: |
poetry run flake8 --version
poetry run ruff --version
poetry run poe lint --show-source --statistics
- name: Type checking with mypy
run: |
Expand Down
175 changes: 22 additions & 153 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ include = ["*/py.typed", "*.pyi"]
python = ">=3.8.1"

[tool.poetry.group.dev.dependencies]
black = { version = "^24.2.0" }
flake8 = { version = "^7.0.0" }
mypy = "~1.9.0"
poethepoet = "^0.25.0"
ruff = "^0.3.2"

[tool.black]
[tool.ruff]
line-length = 79
target-version = "py38"

[tool.poe.tasks]
test = "python3 -Wall -m unittest test_asserts"
doctest = "python3 -m doctest asserts/__init__.py"
lint = "flake8 asserts test_asserts.py"
lint = "ruff check asserts test_asserts.py"
typecheck = "mypy asserts test_asserts.py"

[build-system]
Expand Down
4 changes: 0 additions & 4 deletions setup.cfg

This file was deleted.

0 comments on commit 2740a24

Please sign in to comment.