-
Notifications
You must be signed in to change notification settings - Fork 11
/
.pre-commit-config.yaml
64 lines (58 loc) · 1.68 KB
/
.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
default_language_version:
python: python3
repos:
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort
stages: [pre-commit]
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
hooks:
- id: pyupgrade
args: [--py39-plus]
stages: [pre-commit]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.4.2
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
types_or: [python, pyi, jupyter]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.10.0' # Use the sha / tag you want to point at
hooks:
- id: mypy
entry: mypy --install-types --non-interactive --config-file .mypy.ini
exclude: (^docs/|^tests/)
additional_dependencies: ["types-python-dateutil", "types-attrs", "types-PyYAML"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-executables-have-shebangs
- id: check-json
- id: check-yaml
exclude: (^library/code_comparison/iea26/results/)|(^library/code_comparison/dinwoodie/results/)
- id: check-merge-conflict
- id: check-symlinks
- id: mixed-line-ending
- id: pretty-format-json
args: [--autofix]
# - repo: local
# hooks:
# - id: pytest
# name: pytest
# stages: [commit]
# entry: pytest --tb=line --deselect=setup.py tests/
# language: system
# types: [python]
# - id: pytest-cov
# name: pytest-cov
# stages: [commit]
# language: system
# entry: pytest --cov=wombat --tb=no --ignore=*setup.py --cov-fail-under=80
# types: [python]
# pass_filenames: false