Skip to content

Commit 3729ea3

Browse files
authored
Merge pull request #26 from taskiq-python/feature/ruff
2 parents c4dda5b + 0463b2e commit 3729ea3

File tree

9 files changed

+325
-851
lines changed

9 files changed

+325
-851
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
name: Testing
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
48

59
jobs:
610
lint:
711
strategy:
812
matrix:
913
cmd:
1014
- black
11-
- flake8
12-
- isort
1315
- mypy
14-
- autoflake
16+
- ruff
1517
runs-on: ubuntu-latest
1618
steps:
1719
- 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)