File tree 2 files changed +11
-5
lines changed
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 3
3
# Then install the hooks within the repo:
4
4
# $ cd /PATH/TO/REPO
5
5
# $ pre-commit install
6
-
6
+ exclude : ' ^docs/code-comparisons/ ' # skip the code comparisons directory
7
7
repos :
8
8
- repo : https://github.com/ambv/black
9
- rev : 23.11.0
9
+ rev : 24.1.1
10
10
hooks :
11
11
- id : black
12
12
args : [--line-length=100, --exclude=docs/*]
@@ -22,15 +22,15 @@ repos:
22
22
- id : check-ast
23
23
# isort python package import sorting
24
24
- repo : https://github.com/pycqa/isort
25
- rev : ' 5.12.0 '
25
+ rev : ' 5.13.2 '
26
26
hooks :
27
27
- id : isort
28
28
args : ["--profile", "black",
29
29
" --line-length=100" ,
30
- " --extend- skip=docs/*/*/*.py " ,
30
+ " --skip=docs/" ,
31
31
" --known-local-folder" ,
32
32
" tests" , "-p", "hamilton"]
33
33
- repo : https://github.com/pycqa/flake8
34
- rev : 6.1 .0
34
+ rev : 7.0 .0
35
35
hooks :
36
36
- id : flake8
Original file line number Diff line number Diff line change @@ -16,3 +16,9 @@ ignore =
16
16
[isort]
17
17
known_first_party =hamilton
18
18
known_local_folder =tests
19
+ skip =docs
20
+
21
+ [black]
22
+ line-length = 100
23
+ exclude = " docs/*.py"
24
+ verbose = true
You can’t perform that action at this time.
0 commit comments