|
1 | | -repos: |
2 | | - # Using this mirror lets us use mypyc-compiled black, which is about 2x faster |
3 | | - # This is recommended by psf/black: https://github.com/psf/black/blob/main/.pre-commit-hooks.yaml |
4 | | - - repo: https://github.com/psf/black-pre-commit-mirror |
5 | | - rev: 23.7.0 |
6 | | - hooks: |
7 | | - - id: black |
8 | | - # It is recommended to specify the latest version of Python |
9 | | - # supported by your project here, or alternatively use |
10 | | - # pre-commit's default_language_version, see |
11 | | - # https://pre-commit.com/#top_level-default_language_version |
12 | | - language_version: python3.10 |
13 | | - files: ^(tests|schematic|schematic_api)/ |
14 | | - |
15 | | - - repo: https://github.com/pycqa/isort |
16 | | - rev: 5.13.2 |
17 | | - hooks: |
18 | | - - id: isort |
19 | | - name: isort (python) |
20 | | - files: ^(tests|schematic|schematic_api)/ |
21 | | - args: ["--profile", "black", "--filter-files"] |
| 1 | +exclude: "^docs/conf.py|^docs/build/" |
| 2 | + |
| 3 | +repos: |
| 4 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 5 | + rev: v4.4.0 |
| 6 | + hooks: |
| 7 | + - id: trailing-whitespace |
| 8 | + - id: check-added-large-files |
| 9 | + - id: check-ast |
| 10 | + # - id: check-json |
| 11 | + - id: check-merge-conflict |
| 12 | + - id: check-xml |
| 13 | + - id: check-yaml |
| 14 | + exclude: ^mkdocs\.yml$ |
| 15 | + - id: debug-statements |
| 16 | + - id: end-of-file-fixer |
| 17 | + - id: requirements-txt-fixer |
| 18 | + - id: mixed-line-ending |
| 19 | + args: ["--fix=auto"] # replace 'auto' with 'lf' to enforce Linux/Mac line endings or 'crlf' for Windows |
| 20 | + |
| 21 | + # - repo: https://github.com/astral-sh/ruff-pre-commit |
| 22 | + # rev: "v0.0.270" |
| 23 | + # hooks: |
| 24 | + # - id: ruff |
| 25 | + |
| 26 | + # - repo: https://github.com/pycqa/isort |
| 27 | + # rev: 5.13.2 |
| 28 | + # hooks: |
| 29 | + # - id: isort |
| 30 | + # name: isort (python) |
| 31 | + |
| 32 | + - repo: https://github.com/psf/black |
| 33 | + rev: 23.12.1 |
| 34 | + hooks: |
| 35 | + - id: black |
| 36 | + language_version: python3 |
| 37 | + |
| 38 | + # - repo: https://github.com/PyCQA/bandit |
| 39 | + # rev: 1.7.5 |
| 40 | + # hooks: |
| 41 | + # - id: bandit |
| 42 | + # args: ["-c", "pyproject.toml"] |
| 43 | + # additional_dependencies: ["bandit[toml]"] |
| 44 | +# - repo: https://github.com/asottile/blacken-docs |
| 45 | +# rev: v1.12.0 |
| 46 | +# hooks: |
| 47 | +# - id: blacken-docs |
| 48 | +# additional_dependencies: [black] |
| 49 | + |
| 50 | +# - repo: https://github.com/pre-commit/mirrors-mypy |
| 51 | +# rev: 'v1.0.1' |
| 52 | +# hooks: |
| 53 | +# - id: mypy |
| 54 | +# additional_dependencies: [pydantic~=1.10] |
| 55 | + |
| 56 | +# Checks for missing docstrings |
| 57 | +# - repo: https://github.com/econchick/interrogate |
| 58 | +# rev: 1.5.0 |
| 59 | +# hooks: |
| 60 | +# - id: interrogate |
| 61 | +# exclude: ^(docs/conf.py|setup.py|tests) |
| 62 | +# args: [--config=pyproject.toml] |
| 63 | + |
| 64 | +# finds dead python code |
| 65 | +# - repo: https://github.com/jendrikseipp/vulture |
| 66 | +# rev: 'v2.7' |
| 67 | +# hooks: |
| 68 | +# - id: vulture |
0 commit comments