Skip to content

Commit 75882f7

Browse files
committed
Flake8 replaced with ruff.
Signed-off-by: Pavel Kirilin <win10@list.ru>
1 parent c4dda5b commit 75882f7

9 files changed

Lines changed: 320 additions & 850 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ jobs:
88
matrix:
99
cmd:
1010
- black
11-
- flake8
12-
- isort
1311
- mypy
14-
- autoflake
12+
- ruff
1513
runs-on: ubuntu-latest
1614
steps:
1715
- uses: actions/checkout@v2

.pre-commit-config.yaml

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,35 +22,20 @@ repos:
2222
language: system
2323
types: [python]
2424

25-
- id: autoflake
26-
name: autoflake
27-
entry: poetry run autoflake
28-
language: system
29-
types: [ python ]
30-
args: [ --in-place, --remove-all-unused-imports, --remove-duplicate-keys ]
31-
32-
- id: isort
33-
name: isort
34-
entry: poetry run isort
35-
language: system
36-
types: [ python ]
37-
38-
- id: flake8
39-
name: Check with Flake8
40-
entry: poetry run flake8
25+
- id: ruff
26+
name: Run ruff lints
27+
entry: poetry run ruff
4128
language: system
4229
pass_filenames: false
43-
types: [ python ]
44-
args: [--count, taskiq_dependencies]
30+
types: [python]
31+
args:
32+
- "--fix"
33+
- "--unsafe-fixes"
34+
- "taskiq_dependencies"
35+
- "tests"
4536

4637
- id: mypy
4738
name: Validate types with MyPy
4839
entry: poetry run mypy
4940
language: system
5041
types: [ python ]
51-
52-
- id: yesqa
53-
name: Remove usless noqa
54-
entry: poetry run yesqa
55-
language: system
56-
types: [ python ]

0 commit comments

Comments
 (0)