Skip to content

Commit 684a14a

Browse files
committed
Change CI to use ruff rather than flake8 and isort
1 parent 94061f2 commit 684a14a

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ jobs:
5555
5656
- name: "Lint"
5757
run: |
58-
flake8 *.py pip_check_reqs tests
5958
mypy .
60-
isort --check-only .
59+
ruff .
6160
black --check .
6261
pylint pip_check_reqs tests
6362
pip-extra-reqs pip_check_reqs

pyproject.toml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
'too-many-return-statements',
4949
'too-many-lines',
5050
'locally-disabled',
51-
# Let flake8 handle long lines
51+
# Let ruff handle long lines
5252
'line-too-long',
53-
# Let flake8 handle unused imports
53+
# Let ruff handle unused imports
5454
'unused-import',
5555
# Let isort deal with sorting
5656
'ungrouped-imports',
@@ -59,7 +59,7 @@
5959
'missing-return-type-doc',
6060
# Too difficult to please
6161
'duplicate-code',
62-
# Let isort handle imports
62+
# Let ruff handle imports
6363
'wrong-import-order',
6464
# It would be nice to add this, but it's too much work
6565
"missing-function-docstring",
@@ -94,7 +94,5 @@ line-length = 79
9494

9595
strict = true
9696

97-
[tool.isort]
98-
99-
multi_line_output = 3
100-
include_trailing_comma = true
97+
[tool.ruff]
98+
select = ["ALL"]

test-requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
black
2-
flake8
3-
isort
2+
ruff
43
mypy
54
pyenchant
65
pylint

0 commit comments

Comments
 (0)