mirror of https://gitlab.com/baco/dotconf.git
78 lines
2.1 KiB
YAML
78 lines
2.1 KiB
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.5.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
exclude: .chart/
|
|
- id: check-added-large-files
|
|
|
|
- repo: https://github.com/PyCQA/flake8
|
|
rev: 7.0.0
|
|
hooks:
|
|
- id: flake8
|
|
args: [--max-line-length=120]
|
|
language: system # don't commit!!
|
|
|
|
- repo: https://github.com/PyCQA/pylint
|
|
rev: v3.0.3
|
|
hooks:
|
|
- id: pylint
|
|
args: [
|
|
--max-line-length=120,
|
|
"--disable=missing-docstring,invalid-name,redefined-outer-name,logging-format-interpolation,too-many-ancestors,too-few-public-methods",
|
|
--disable=import-error,
|
|
--max-args=7,
|
|
]
|
|
# disabled plugins: pylint.extensions.mccabe
|
|
exclude: tests|tests/input|tests/extensions/data|tests/regrtest_data|tests/data|doc
|
|
language: system # don't commit!!
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v1.8.0
|
|
hooks:
|
|
- id: mypy
|
|
args: [
|
|
--ignore-missing-imports,
|
|
--follow-imports=silent,
|
|
--show-column-numbers,
|
|
]
|
|
additional_dependencies: [types-all]
|
|
#exclude: migrations/
|
|
language: system # don't commit!!
|
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
rev: v3.15.0
|
|
hooks:
|
|
- id: pyupgrade
|
|
args: [--py311-plus]
|
|
args: [--py36-plus]
|
|
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: 5.13.2
|
|
hooks:
|
|
- id: isort
|
|
name: isort (python)
|
|
args: [--check-only, --line-length=120, --diff]
|
|
args: [--check-only, --profile=django, --line-length=120, --diff, --py=36, --src=ceg/]
|
|
|
|
- repo: https://github.com/jazzband/pip-tools
|
|
rev: 7.3.0
|
|
hooks:
|
|
- id: pip-compile
|
|
name: pip-compile setup.py
|
|
files: ^(setup\.py|requirements\.txt)$
|
|
- id: pip-compile
|
|
name: pip-compile requirements-dev.in
|
|
args: [requirements-dev.in]
|
|
files: ^requirements-dev\.(in|txt)$
|
|
- id: pip-compile
|
|
name: pip-compile requirements-lint.in
|
|
args: [requirements-lint.in]
|
|
files: ^requirements-lint\.(in|txt)$
|
|
- id: pip-compile
|
|
name: pip-compile requirements.txt
|
|
args: [requirements.txt]
|
|
files: ^requirements\.(in|txt)$
|