mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Enable flake8 pre-commit
This commit is contained in:
parent
ae5caa6831
commit
6a99d8ef4b
2 changed files with 8 additions and 5 deletions
|
@ -20,10 +20,12 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
|
|
||||||
# - repo: https://github.com/pycqa/flake8
|
- repo: https://github.com/pycqa/flake8
|
||||||
# rev: 7.0.0
|
rev: 7.0.0
|
||||||
# hooks:
|
hooks:
|
||||||
# - id: flake8
|
- id: flake8
|
||||||
|
additional_dependencies:
|
||||||
|
- flake8-import-order
|
||||||
|
|
||||||
# - repo: https://github.com/pre-commit/mirrors-mypy
|
# - repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
# rev: v1.9.0
|
# rev: v1.9.0
|
||||||
|
|
3
tox.ini
3
tox.ini
|
@ -1,9 +1,10 @@
|
||||||
[flake8]
|
[flake8]
|
||||||
max-line-length = 9999
|
max-line-length = 9999
|
||||||
import-order-style = pep8
|
import-order-style = pep8
|
||||||
exclude = .git,.vscode,libraries,build.py,.github
|
exclude = .git,.vscode
|
||||||
extend-ignore =
|
extend-ignore =
|
||||||
I202
|
I202
|
||||||
|
E203
|
||||||
per-file-ignores =
|
per-file-ignores =
|
||||||
*/__init__.py: F401
|
*/__init__.py: F401
|
||||||
tests/test_imports.py: F401
|
tests/test_imports.py: F401
|
||||||
|
|
Loading…
Reference in a new issue