-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
77 lines (70 loc) · 1.75 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
76
77
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 25.1.0
hooks:
- id: black
name: black
entry: black
language: python
types: [python]
additional_dependencies:
- black[jupyter]
args:
- --line-length
- "120"
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
- id: autoflake
name: autoflake
entry: autoflake
language: python
types: [python]
additional_dependencies:
- autoflake
args:
- --in-place
- --remove-all-unused-imports
- --remove-unused-variables
- --recursive
# - repo: https://github.com/PyCQA/flake8
# rev: 6.0.0
# hooks:
# - id: flake8
# name: flake8
# entry: flake8
# language: python
# types: [python]
# additional_dependencies:
# - flake8-bandit
# - flake8-bugbear
# args:
# - --max-line-length=120
# - --ignore=E501
# - repo: https://github.com/PyCQA/flake8
# rev: 6.0.0
# hooks:
# - id: flake8
# name: flake8
# entry: flake8
# language: system
# types: [python]
# exclude: ^src/scout_ml_package/data/
# additional_dependencies:
# - flake8-bandit
# - flake8-bugbear
#
#pre-commit run --all-files
#autopep8 -i --recursive .
#autoflake -i --remove-unused-variables
#pre-commit install
#pre-commit run --all-files
#pre-commit autoupdate
#autopep8 -i --recursive .
#autoflake -i --remove-unused-variables .repos: