Skip to content

Commit

Permalink
Merge branch 'release/1.5.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rius committed Feb 19, 2024
2 parents 32dad9c + f3012f0 commit 8234e28
Show file tree
Hide file tree
Showing 11 changed files with 555 additions and 846 deletions.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ ignore =
WPS424,
; Found a too complex `f` string
WPS237,
; Found `no cover` comments overuse
WPS403,

per-file-ignores =
; all tests
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
name: Testing

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:

jobs:
lint:
strategy:
matrix:
cmd:
- black
- flake8
- isort
- mypy
- autoflake
- ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
33 changes: 9 additions & 24 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,35 +22,20 @@ 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
- id: ruff
name: Run ruff lints
entry: poetry run ruff
language: system
pass_filenames: false
types: [ python ]
args: [--count, taskiq_dependencies]
types: [python]
args:
- "--fix"
- "--unsafe-fixes"
- "taskiq_dependencies"
- "tests"

- 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
language: system
types: [ python ]
Loading

0 comments on commit 8234e28

Please sign in to comment.