File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 41
41
echo "or you can run by hand on staged files with"
42
42
echo " pre-commit run"
43
43
echo "or after-the-fact on already committed files with"
44
- echo " pre-commit run --all-files"
44
+ echo " pre-commit run --all-files --hook-stage=manual "
45
45
46
46
build-n-test-n-coverage :
47
47
name : Build, test and code coverage
Original file line number Diff line number Diff line change 1
- ci :
2
- skip : [check-jsonschema]
3
-
4
1
repos :
5
2
- repo : https://github.com/pre-commit/pre-commit-hooks
6
3
rev : v4.1.0
@@ -34,6 +31,13 @@ repos:
34
31
hooks :
35
32
- id : prettier
36
33
34
+ - repo : https://github.com/PyCQA/doc8
35
+ rev : 0.11.1
36
+ hooks :
37
+ - id : doc8
38
+ args : [--max-line-length=200]
39
+ stages : [manual]
40
+
37
41
- repo : https://github.com/pycqa/flake8
38
42
rev : 4.0.1
39
43
hooks :
44
48
" flake8-logging-format==0.6.0" ,
45
49
" flake8-implicit-str-concat==0.2.0" ,
46
50
]
51
+ stages : [manual]
47
52
48
53
- repo : https://github.com/PyCQA/doc8
49
54
rev : 0.11.1
59
64
files : ^\.github/workflows/
60
65
types : [yaml]
61
66
args : ["--schemafile", "https://json.schemastore.org/github-workflow"]
67
+ stages : [manual]
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ _file:///my/projects/jupyter_client/docs/\_build/html/index.html_
57
57
58
58
## Contributing
59
59
60
- jupyter-client has adopted automatic code formatting so you shouldn't
60
+ ` jupyter-client ` has adopted automatic code formatting so you shouldn't
61
61
need to worry too much about your code style.
62
62
As long as your code is valid,
63
63
the pre-commit hook should take care of how it should look.
@@ -76,3 +76,6 @@ If you have already committed files before setting up the pre-commit
76
76
hook with ` pre-commit install ` , you can fix everything up using
77
77
` pre-commit run --all-files ` . You need to make the fixing commit
78
78
yourself after that.
79
+
80
+ Some of the hooks only run on CI by default, but you can invoke them by
81
+ running with the ` --hook-stage manual ` argument.
You can’t perform that action at this time.
0 commit comments