-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
39 lines (39 loc) · 1.1 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: src/data/vscode_plugin_info.txt
- id: check-docstring-first
- id: check-json
- repo: https://github.com/ambv/black
rev: 23.11.0
hooks:
- id: black
args: [--safe, --quiet, --line-length, "200"]
language_version: python3
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
args: ["--max-line-length=200"]
additional_dependencies: [flake8-typing-imports==1.15.0.0]
exclude: |
(?x)^(
src/utils/data_control.py
)$
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.1.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/reorder_python_imports
rev: v2.4.0
hooks:
- id: reorder-python-imports
language_version: python3
- repo: https://github.com/asottile/pyupgrade
rev: v2.11.0
hooks:
- id: pyupgrade
language_version: python3