| 1 |
# See https://pre-commit.com for more information |
| 2 |
# See https://pre-commit.com/hooks.html for more hooks |
| 3 |
repos: |
| 4 |
- repo: https://github.com/pre-commit/pre-commit-hooks |
| 5 |
rev: v5.0.0 |
| 6 |
hooks: |
| 7 |
- id: trailing-whitespace |
| 8 |
- id: end-of-file-fixer |
| 9 |
- id: check-yaml |
| 10 |
- id: check-added-large-files |
| 11 |
- id: check-toml |
| 12 |
- id: mixed-line-ending |
| 13 |
- id: requirements-txt-fixer |
| 14 |
- id: check-merge-conflict |
| 15 |
- id: detect-private-key |
| 16 |
|
| 17 |
# - repo: https://github.com/astral-sh/ruff-pre-commit |
| 18 |
# rev: v0.7.0 |
| 19 |
# hooks: |
| 20 |
# - id: ruff |
| 21 |
# args: [ --fix ] |
| 22 |
# - id: ruff-format |
| 23 |
|
| 24 |
- repo: https://github.com/asottile/pyupgrade |
| 25 |
rev: v3.19.1 |
| 26 |
hooks: |
| 27 |
- id: pyupgrade |
| 28 |
args: [--py39-plus] |
| 29 |
exclude: | |
| 30 |
(?x)^( |
| 31 |
bpack/tests/test_field_descriptor.py| |
| 32 |
bpack/tests/test_record_descriptor.py| |
| 33 |
bpack/tests/test_utils.py| |
| 34 |
bpack/tests/test_future_annotations.py |
| 35 |
) |
| 36 |
|
| 37 |
- repo: https://github.com/pycqa/flake8 |
| 38 |
rev: 7.1.1 |
| 39 |
hooks: |
| 40 |
- id: flake8 |
| 41 |
|
| 42 |
- repo: https://github.com/pycqa/pydocstyle |
| 43 |
rev: 6.3.0 |
| 44 |
hooks: |
| 45 |
- id: pydocstyle |
| 46 |
exclude: tests|examples|data|docs |
| 47 |
|
| 48 |
- repo: https://github.com/pycqa/isort |
| 49 |
rev: 5.13.2 |
| 50 |
hooks: |
| 51 |
- id: isort |
| 52 |
name: isort (python) |
| 53 |
|
| 54 |
- repo: https://github.com/psf/black-pre-commit-mirror |
| 55 |
rev: 24.10.0 |
| 56 |
hooks: |
| 57 |
- id: black |
| 58 |
language_version: python3.9 |
| 59 |
|
| 60 |
# - repo: https://github.com/pre-commit/mirrors-mypy |
| 61 |
# rev: v1.12.0 |
| 62 |
# hooks: |
| 63 |
# - id: mypy |
| 64 |
|
| 65 |
# - repo: https://github.com/codespell-project/codespell |
| 66 |
# rev: v2.2.4 |
| 67 |
# hooks: |
| 68 |
# - id: codespell |
| 69 |
# additional_dependencies: [tomli] |