|
@ -13,18 +13,11 @@ exclude: | |
|
|
default_language_version: |
|
|
default_language_version: |
|
|
python: python3 |
|
|
python: python3 |
|
|
repos: |
|
|
repos: |
|
|
- repo: https://github.com/humitos/mirrors-autoflake |
|
|
|
|
|
rev: v1.3 |
|
|
|
|
|
|
|
|
- repo: https://github.com/myint/autoflake |
|
|
|
|
|
rev: v1.4 |
|
|
hooks: |
|
|
hooks: |
|
|
- id: autoflake |
|
|
- id: autoflake |
|
|
args: |
|
|
|
|
|
[ |
|
|
|
|
|
"--exclude", |
|
|
|
|
|
"__init__.py", |
|
|
|
|
|
"--in-place", |
|
|
|
|
|
"--remove-all-unused-imports", |
|
|
|
|
|
"--remove-unused-variable", |
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
args: ["-i", "--ignore-init-module-imports"] |
|
|
- repo: https://github.com/psf/black |
|
|
- repo: https://github.com/psf/black |
|
|
rev: 19.10b0 |
|
|
rev: 19.10b0 |
|
|
hooks: |
|
|
hooks: |
|
@ -57,30 +50,35 @@ repos: |
|
|
hooks: |
|
|
hooks: |
|
|
- id: trailing-whitespace |
|
|
- id: trailing-whitespace |
|
|
# exclude autogenerated files |
|
|
# exclude autogenerated files |
|
|
exclude: /README\.rst$ |
|
|
|
|
|
|
|
|
exclude: /README\.rst$|\.pot?$ |
|
|
- id: end-of-file-fixer |
|
|
- id: end-of-file-fixer |
|
|
# exclude autogenerated files |
|
|
# exclude autogenerated files |
|
|
exclude: /README\.rst$ |
|
|
|
|
|
|
|
|
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 |
|
|
- id: check-docstring-first |
|
|
- id: check-docstring-first |
|
|
- id: check-executables-have-shebangs |
|
|
- id: check-executables-have-shebangs |
|
|
- id: check-merge-conflict |
|
|
- id: check-merge-conflict |
|
|
|
|
|
# exclude files where underlines are not distinguishable from merge conflicts |
|
|
|
|
|
exclude: /README\.rst$|^docs/.*\.rst$ |
|
|
- id: check-symlinks |
|
|
- id: check-symlinks |
|
|
- 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: |
|
@ -97,13 +95,13 @@ repos: |
|
|
rev: v1.26.2 |
|
|
rev: v1.26.2 |
|
|
hooks: |
|
|
hooks: |
|
|
- id: pyupgrade |
|
|
- id: pyupgrade |
|
|
- repo: https://github.com/asottile/seed-isort-config |
|
|
|
|
|
rev: v1.9.4 |
|
|
|
|
|
hooks: |
|
|
|
|
|
- id: seed-isort-config |
|
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-isort |
|
|
- repo: https://github.com/pre-commit/mirrors-isort |
|
|
rev: v4.3.21 |
|
|
rev: v4.3.21 |
|
|
hooks: |
|
|
hooks: |
|
|
- id: isort |
|
|
- id: isort |
|
|
name: isort except __init__.py |
|
|
name: isort except __init__.py |
|
|
exclude: /__init__\.py$ |
|
|
exclude: /__init__\.py$ |
|
|
|
|
|
- repo: https://github.com/acsone/setuptools-odoo |
|
|
|
|
|
rev: 2.5.10 |
|
|
|
|
|
hooks: |
|
|
|
|
|
- id: setuptools-odoo-make-default |