2022-01-06 16:42:35 +00:00
|
|
|
# See https://pre-commit.com for more information
|
|
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
2022-06-22 09:37:57 +00:00
|
|
|
exclude: benchmarks/
|
2022-01-06 14:30:08 +00:00
|
|
|
repos:
|
2022-01-06 16:42:35 +00:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2023-11-07 17:07:05 +00:00
|
|
|
rev: v4.4.0
|
2022-01-06 14:30:08 +00:00
|
|
|
hooks:
|
2022-01-06 16:42:35 +00:00
|
|
|
- id: check-ast
|
|
|
|
- id: check-builtin-literals
|
|
|
|
- id: check-case-conflict
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-json
|
|
|
|
- id: check-toml
|
|
|
|
- id: check-yaml
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: mixed-line-ending
|
|
|
|
- id: check-vcs-permalinks
|
|
|
|
- id: check-shebang-scripts-are-executable
|
2023-11-08 11:43:38 +00:00
|
|
|
- id: trailing-whitespace
|
2022-01-06 16:42:35 +00:00
|
|
|
- repo: https://github.com/pre-commit/pygrep-hooks
|
2023-11-07 17:07:05 +00:00
|
|
|
rev: v1.10.0
|
2022-01-06 16:42:35 +00:00
|
|
|
hooks:
|
|
|
|
- id: python-check-mock-methods
|
|
|
|
- id: python-no-log-warn
|
|
|
|
- id: python-use-type-annotations
|
|
|
|
- id: rst-directive-colons
|
|
|
|
- id: rst-inline-touching-normal
|
2022-02-26 13:22:55 +00:00
|
|
|
- repo: https://github.com/hadialqattan/pycln
|
2023-11-07 17:07:05 +00:00
|
|
|
rev: v2.2.2
|
2022-02-26 13:22:55 +00:00
|
|
|
hooks:
|
|
|
|
- id: pycln
|
|
|
|
args: [--all]
|
2022-01-06 16:42:35 +00:00
|
|
|
- repo: https://github.com/psf/black
|
2023-11-07 17:07:05 +00:00
|
|
|
rev: 23.7.0
|
2022-01-06 14:30:08 +00:00
|
|
|
hooks:
|
2022-01-06 16:42:35 +00:00
|
|
|
- id: black
|
2022-03-10 17:08:26 +00:00
|
|
|
exclude: ^benchmarks/
|
2023-11-08 11:43:38 +00:00
|
|
|
- repo: https://github.com/PyCQA/isort
|
2023-07-20 09:55:58 +00:00
|
|
|
rev: 5.12.0
|
2022-01-06 16:42:35 +00:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
2023-07-20 09:55:58 +00:00
|
|
|
name: isort (python)
|
2023-09-17 15:36:06 +00:00
|
|
|
language_version: "3.11"
|
2022-01-06 16:42:35 +00:00
|
|
|
args: ["--profile", "black"]
|