Skip to content

Commit 2740a24

Browse files
committed
Replace flake8 and black with ruff
1 parent c76425e commit 2740a24

File tree

4 files changed

+28
-163
lines changed

4 files changed

+28
-163
lines changed

Diff for: .github/workflows/test-and-lint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
run: pip --disable-pip-version-check install -U poetry
2323
- name: Install Python packages
2424
run: poetry install
25-
- name: Lint with flake8
25+
- name: Lint with ruff
2626
run: |
27-
poetry run flake8 --version
27+
poetry run ruff --version
2828
poetry run poe lint --show-source --statistics
2929
- name: Type checking with mypy
3030
run: |

Diff for: poetry.lock

+22-153
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pyproject.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ include = ["*/py.typed", "*.pyi"]
2525
python = ">=3.8.1"
2626

2727
[tool.poetry.group.dev.dependencies]
28-
black = { version = "^24.2.0" }
29-
flake8 = { version = "^7.0.0" }
3028
mypy = "~1.9.0"
3129
poethepoet = "^0.25.0"
30+
ruff = "^0.3.2"
3231

33-
[tool.black]
32+
[tool.ruff]
3433
line-length = 79
34+
target-version = "py38"
3535

3636
[tool.poe.tasks]
3737
test = "python3 -Wall -m unittest test_asserts"
3838
doctest = "python3 -m doctest asserts/__init__.py"
39-
lint = "flake8 asserts test_asserts.py"
39+
lint = "ruff check asserts test_asserts.py"
4040
typecheck = "mypy asserts test_asserts.py"
4141

4242
[build-system]

Diff for: setup.cfg

-4
This file was deleted.

0 commit comments

Comments
 (0)