-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
executable file
·75 lines (65 loc) · 1.79 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
65
66
67
68
69
70
71
72
73
74
75
# Pre-commit configuration.
# Update versions: 'pre-commit autoupdate'
# Manual check: 'pre-commit run --all-files'
# Angel Martinez Tenor - July 2022
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: mixed-line-ending
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: check-yaml
- id: check-json
- id: pretty-format-json
args: ['--autofix']
- id: check-merge-conflict
- id: check-case-conflict
- id: check-docstring-first
# - id: check-added-large-files
# args: ['--maxkb=2000']
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.8.5
hooks:
# - id: nbqa-isort
# args: ['--line-length=120']
- id: nbqa-black
args: ['--line-length=120']
# - id: nbqa-flake8
# args: [--max-line-length=120]
# args: [--nbqa-mutate]
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
hooks:
- id: pyupgrade
args: [--py310-plus]
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
args: ['--line-length=120']
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: ['--line-length=120', '--profile', 'black']
name: isort (python)
stages: [commit]
# stages: [commit]
# language: system
# entry: isort
# types: [python]
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
args: ['--max-line-length=120']
# - repo: local
# hooks:
# - id: jupyter-nb-clear-output
# name: jupyter-nb-clear-output
# files: \.ipynb$
# stages: [commit]
# language: system
# entry: jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace # notebooks/test_exp*