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
|
|
|
|
rev: v4.0.1
|
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
|
|
|
|
- repo: https://github.com/pre-commit/pygrep-hooks
|
|
|
|
rev: v1.9.0
|
|
|
|
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
|
2022-03-12 13:22:30 +00:00
|
|
|
rev: v1.2.5
|
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
|
2022-06-08 15:22:30 +00:00
|
|
|
rev: 22.3.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-07-20 09:55:58 +00:00
|
|
|
- repo: https://github.com/pycqa/isort
|
|
|
|
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"]
|