-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.pre-commit-config.yaml
38 lines (38 loc) · 1017 Bytes
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
default_language_version:
python: python3.12
repos:
- repo: local
hooks:
- id: update_readme
name: Update Readme
entry: python scripts/generate_readme.py
language: system
- id: sort_all
name: Sort __all__
entry: python scripts/sort_all.py
language: system
types: [python]
- repo: https://github.com/hadialqattan/pycln
rev: v2.4.0
hooks:
- id: pycln
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.10.0
hooks:
- id: black
args: [-C]
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
exclude: ^examples/.*\.py$
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
hooks:
- id: mypy
args: [--ignore-missing-imports, --scripts-are-modules, --warn-unused-ignores, --warn-redundant-cast, --check-untyped-defs]
exclude: ^examples/.*\.py$