|
| 1 | +repos: |
| 2 | + |
| 3 | +- repo: https://github.com/econchick/interrogate |
| 4 | + rev: 1.5.0 |
| 5 | + hooks: |
| 6 | + - id: interrogate |
| 7 | + exclude: ^(docs|setup.py|tests) |
| 8 | + args: [--config=pyproject.toml] |
| 9 | + |
| 10 | +- repo: https://github.com/pre-commit/pre-commit-hooks |
| 11 | + rev: v4.1.0 |
| 12 | + hooks: |
| 13 | + - id: trailing-whitespace |
| 14 | + exclude: tests/data |
| 15 | + - id: check-ast |
| 16 | + - id: debug-statements |
| 17 | + - id: end-of-file-fixer |
| 18 | + - id: check-docstring-first |
| 19 | + - id: check-added-large-files |
| 20 | + - id: requirements-txt-fixer |
| 21 | + - id: file-contents-sorter |
| 22 | + files: requirements-dev.txt |
| 23 | + |
| 24 | +- repo: https://github.com/pycqa/flake8 |
| 25 | + rev: 3.9.2 |
| 26 | + hooks: |
| 27 | + - id: flake8 |
| 28 | + exclude: docs/conf.py |
| 29 | + args: [--max-line-length=105]#, --ignore=E203,E501,W503, --select=select=C,E,F,W,B,B950] |
| 30 | + |
| 31 | +- repo: https://github.com/pre-commit/mirrors-isort |
| 32 | + rev: v5.10.1 |
| 33 | + hooks: |
| 34 | + - id: isort |
| 35 | + additional_dependencies: [toml] |
| 36 | + args: [--project=gcm_filters, --multi-line=3, --lines-after-imports=2, --lines-between-types=1, --trailing-comma, --force-grid-wrap=0, --use-parentheses, --line-width=88] |
| 37 | + |
| 38 | +# - repo: https://github.com/asottile/seed-isort-config |
| 39 | +# rev: v2.1.1 |
| 40 | +# hooks: |
| 41 | +# - id: seed-isort-config |
| 42 | + |
| 43 | +- repo: https://github.com/psf/black |
| 44 | + rev: 22.3.0 |
| 45 | + hooks: |
| 46 | + - id: black |
| 47 | + language_version: python3 |
| 48 | + |
| 49 | +- repo: https://github.com/pre-commit/mirrors-mypy |
| 50 | + rev: v0.982 |
| 51 | + hooks: |
| 52 | + - id: mypy |
| 53 | + additional_dependencies: [types-requests, types-setuptools] |
| 54 | + exclude: docs/source/conf.py |
| 55 | + args: [--ignore-missing-imports] |
| 56 | + |
| 57 | +- repo: https://github.com/codespell-project/codespell |
| 58 | + rev: v2.1.0 |
| 59 | + hooks: |
| 60 | + - id: codespell |
| 61 | + args: |
| 62 | + - --quiet-level=2 |
0 commit comments