-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
45 lines (41 loc) · 1.08 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
default_language_version:
python: python3
repos:
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort
stages: [commit]
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
name: black
stages: [commit]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.7.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.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-executables-have-shebangs
- id: check-json
- id: check-yaml
args: [--unsafe] # allow Python constructors
- id: check-merge-conflict
- id: check-symlinks
- id: mixed-line-ending
- id: pretty-format-json
args: [--autofix]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.1.5
hooks:
- id: ruff
args: [--fix]