[UPD] pin flake8 version [ci skip]
parent
2c7a14157d
commit
d24094ad50
|
@ -50,15 +50,6 @@ repos:
|
||||||
# exclude autogenerated files
|
# exclude autogenerated files
|
||||||
exclude: /README\.rst$|\.pot?$
|
exclude: /README\.rst$|\.pot?$
|
||||||
- id: debug-statements
|
- id: debug-statements
|
||||||
- id: flake8
|
|
||||||
name: flake8 except __init__.py
|
|
||||||
exclude: /__init__\.py$
|
|
||||||
additional_dependencies: ["flake8-bugbear==19.8.0"]
|
|
||||||
- id: flake8
|
|
||||||
name: flake8 only __init__.py
|
|
||||||
args: ["--extend-ignore=F401"] # ignore unused imports in __init__.py
|
|
||||||
files: /__init__\.py$
|
|
||||||
additional_dependencies: ["flake8-bugbear==19.8.0"]
|
|
||||||
- id: fix-encoding-pragma
|
- id: fix-encoding-pragma
|
||||||
args: ["--remove"]
|
args: ["--remove"]
|
||||||
- id: check-case-conflict
|
- id: check-case-conflict
|
||||||
|
@ -71,6 +62,18 @@ repos:
|
||||||
- id: check-xml
|
- id: check-xml
|
||||||
- id: mixed-line-ending
|
- id: mixed-line-ending
|
||||||
args: ["--fix=lf"]
|
args: ["--fix=lf"]
|
||||||
|
- repo: https://gitlab.com/pycqa/flake8
|
||||||
|
rev: 3.7.9
|
||||||
|
hooks:
|
||||||
|
- id: flake8
|
||||||
|
name: flake8 except __init__.py
|
||||||
|
exclude: /__init__\.py$
|
||||||
|
additional_dependencies: ["flake8-bugbear==19.8.0"]
|
||||||
|
- id: flake8
|
||||||
|
name: flake8 only __init__.py
|
||||||
|
args: ["--extend-ignore=F401"] # ignore unused imports in __init__.py
|
||||||
|
files: /__init__\.py$
|
||||||
|
additional_dependencies: ["flake8-bugbear==19.8.0"]
|
||||||
- repo: https://github.com/pre-commit/mirrors-pylint
|
- repo: https://github.com/pre-commit/mirrors-pylint
|
||||||
rev: v2.3.1
|
rev: v2.3.1
|
||||||
hooks:
|
hooks:
|
||||||
|
|
Loading…
Reference in New Issue