Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
with:
python-version: 3.x
- run: pip install --upgrade pip
- run: pip install "black<23" pylint==v3.0.0a3 mypy==v0.902 types-setuptools pytest
- run: black --diff --check $(git ls-files -- '*.py' ':!:tests/*' ':!:docs/*' ':!:examples/*')
- run: pylint --disable=all --enable=unused-import $(git ls-files -- '*.py' ':!:tests/*' ':!:docs/*' ':!:examples/*')
- run: mypy --strict $(git ls-files -- '*.py' ':!:tests/*' ':!:docs/*' ':!:examples/*')
- run: pip install "black<23" pylint==v3.0.0a3 mypy==v0.971 types-setuptools pytest "aiozmq<1" "django<5" "fastapi<1" "flask<3" "flask-socketio<5.3.1" "pyzmq" "sanic" "tornado<7" "websockets<11"
- run: black --diff --check $(git ls-files -- '*.py' ':!:docs/*')
- run: pylint --disable=all --enable=unused-import $(git ls-files -- '*.py' ':!:docs/*')
- run: mypy --strict $(git ls-files -- '*.py' ':!:docs/*')
15 changes: 13 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
fail_fast: true
exclude: (^docs)
repos:
- repo: https://github.com/ambv/black
rev: 22.8.0
Expand All @@ -16,6 +17,16 @@ repos:
rev: v0.971
hooks:
- id: mypy
exclude: (^docs)
args: [--strict]
additional_dependencies: ["types-setuptools", "pytest", "pyzmq", "tornado", "websockets", "aiozmq", "flask", "fastapi", "django", "sanic", "flask-socketio"]
additional_dependencies:
- aiozmq<1
- django<5
- fastapi<1
- flask<3
- flask-socketio<5.3.1
- pytest
- pyzmq
- sanic
- tornado<7
- types-setuptools
- websockets<11