Skip to content

Commit

Permalink
Merge pull request #10 from taskiq-python/feature/ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rius authored Oct 3, 2023
2 parents 503a0d8 + 4724719 commit 38e5747
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 633 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ jobs:
matrix:
cmd:
- black
- flake8
- isort
- mypy
- autoflake
- ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
31 changes: 7 additions & 24 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,35 +22,18 @@ repos:
language: system
types: [python]

- id: autoflake
name: autoflake
entry: poetry run autoflake
language: system
types: [python]
args: [--in-place, --remove-all-unused-imports, --remove-duplicate-keys]

- id: isort
name: isort
entry: poetry run isort
language: system
types: [python]

- id: flake8
name: Check with Flake8
entry: poetry run flake8
language: system
pass_filenames: false
types: [python]
args: [--count, taskiq_fastapi]

- id: mypy
name: Validate types with MyPy
entry: poetry run mypy
language: system
types: [python]

- id: yesqa
name: Remove usless noqa
entry: poetry run yesqa
- id: ruff
name: Run ruff lints
entry: poetry run ruff
language: system
pass_filenames: false
types: [python]
args:
- "--fix"
- "taskiq_fastapi"
Loading

0 comments on commit 38e5747

Please sign in to comment.