-
Notifications
You must be signed in to change notification settings - Fork 26
/
.pre-commit-config.yaml
56 lines (56 loc) · 1.65 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
repos:
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black-jupyter
log_file: devtools/pre-commit.log
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
log_file: devtools/pre-commit.log
- id: check-case-conflict
log_file: devtools/pre-commit.log
- id: check-merge-conflict
log_file: devtools/pre-commit.log
- id: detect-private-key
log_file: devtools/pre-commit.log
- id: end-of-file-fixer
log_file: devtools/pre-commit.log
- id: trailing-whitespace
log_file: devtools/pre-commit.log
- id: no-commit-to-branch
log_file: devtools/pre-commit.log
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
args: ["--profile", "black"]
log_file: devtools/pre-commit.log
- repo: https://github.com/PyCQA/flake8
rev: "7.1.1"
hooks:
- id: flake8
additional_dependencies: ["flake8-docstrings", "flake8-eradicate", "flake8-isort"]
log_file: devtools/pre-commit.log
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.0
hooks:
- id: pyupgrade
log_file: devtools/pre-commit.log
- repo: local
hooks:
- id: check_unmarked_tests
name: check_unmarked_tests
entry: devtools/check_unmarked_tests.sh
language: script
files: ^tests/
types: [python]
pass_filenames: true
- repo: local
hooks:
- id: clean_logfiles
name: clean_logfiles
entry: devtools/clean_logfiles.sh
language: script