2021-12-05 14:34:15 +00:00
|
|
|
repos:
|
2022-09-05 18:27:06 +00:00
|
|
|
- repo: https://github.com/PyCQA/isort
|
2024-01-08 17:35:32 +00:00
|
|
|
rev: 5.13.2
|
2021-12-05 14:34:15 +00:00
|
|
|
hooks:
|
|
|
|
|
- id: isort
|
|
|
|
|
additional_dependencies: [toml]
|
2022-09-05 18:27:06 +00:00
|
|
|
- repo: https://github.com/psf/black
|
2024-04-29 17:44:47 +00:00
|
|
|
rev: 24.4.2
|
2021-12-05 14:34:15 +00:00
|
|
|
hooks:
|
|
|
|
|
- id: black
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-04-15 17:43:09 +00:00
|
|
|
rev: v4.6.0
|
2021-12-05 14:34:15 +00:00
|
|
|
hooks:
|
|
|
|
|
- id: check-added-large-files
|
|
|
|
|
- id: check-case-conflict
|
|
|
|
|
- id: check-executables-have-shebangs
|
|
|
|
|
- id: check-json
|
|
|
|
|
- id: check-merge-conflict
|
|
|
|
|
- id: check-shebang-scripts-are-executable
|
|
|
|
|
- id: check-symlinks
|
|
|
|
|
- id: check-toml
|
|
|
|
|
- id: check-yaml
|
|
|
|
|
- id: debug-statements
|
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
|
exclude: "^tests/resources/"
|
|
|
|
|
- id: fix-byte-order-marker
|
|
|
|
|
- id: fix-encoding-pragma
|
|
|
|
|
args: ["--remove"]
|
|
|
|
|
- id: requirements-txt-fixer
|
2022-09-05 18:27:06 +00:00
|
|
|
- repo: https://github.com/PyCQA/flake8
|
2024-01-08 17:35:32 +00:00
|
|
|
rev: 7.0.0
|
2021-12-05 14:34:15 +00:00
|
|
|
hooks:
|
|
|
|
|
- id: flake8
|
|
|
|
|
- repo: https://github.com/pycqa/pydocstyle
|
2024-01-08 17:35:32 +00:00
|
|
|
rev: 6.3.0
|
2021-12-05 14:34:15 +00:00
|
|
|
hooks:
|
|
|
|
|
- id: pydocstyle
|
2021-12-22 18:02:54 +00:00
|
|
|
exclude: test.*|custom_.*|\d\d\d\d_.*
|
2021-12-05 14:34:15 +00:00
|
|
|
additional_dependencies: [toml]
|
|
|
|
|
- repo: https://github.com/terrencepreilly/darglint
|
|
|
|
|
rev: v1.8.1
|
|
|
|
|
hooks:
|
|
|
|
|
- id: darglint
|
|
|
|
|
args:
|
|
|
|
|
- -v 2
|
|
|
|
|
- "--message-template={path}:{line} in `{obj}`:\n {msg_id}: {msg}"
|
|
|
|
|
- --strictness=short
|
2021-12-22 18:02:54 +00:00
|
|
|
exclude: test.*|custom_.*|\d\d\d\d_.*
|
|
|
|
|
|
2021-12-05 14:34:15 +00:00
|
|
|
- repo: https://github.com/econchick/interrogate
|
2024-04-15 17:43:09 +00:00
|
|
|
rev: 1.7.0 # or master if you're bold
|
2021-12-05 14:34:15 +00:00
|
|
|
hooks:
|
|
|
|
|
- id: interrogate
|