File tree 5 files changed +7
-21
lines changed
development_guide/contributor_guide
5 files changed +7
-21
lines changed Original file line number Diff line number Diff line change @@ -180,11 +180,10 @@ jobs:
180
180
- name : Check documentation build and links
181
181
run : |
182
182
. venv/bin/activate
183
- cd doc
184
- pre-commit run --hook-stage push sphinx-generated-doc --all-files || {
183
+ tox -e docs || {
185
184
echo "git diff:" ; \
186
185
git diff ; \
187
186
echo "End of 'git diff'" ; \
188
- echo "Make sure that 'make html ' succeed without any modifications locally." ; \
187
+ echo "Make sure that 'tox -e docs ' succeed without any modifications locally." ; \
189
188
exit 1; \
190
189
}
Original file line number Diff line number Diff line change @@ -103,13 +103,6 @@ repos:
103
103
]
104
104
exclude : tests(/\w*)*/functional/|tests/input|tests(/\w*)*data/|doc/
105
105
stages : [manual]
106
- - id : sphinx-generated-doc
107
- alias : sphinx-generated-doc
108
- name : sphinx-generated-doc
109
- entry : make -C doc/ html
110
- pass_filenames : false
111
- language : system
112
- stages : [pre-push]
113
106
- id : check-newsfragments
114
107
name : Check newsfragments
115
108
entry : python3 -m script.check_newsfragments
Original file line number Diff line number Diff line change @@ -125,14 +125,12 @@ Tips for Getting Started with Pylint Development
125
125
Building the documentation
126
126
----------------------------
127
127
128
- You can use the makefile in the doc directory with ``make html `` to build the
129
- documentation. To test smaller changes you can consider ``build-html ``, which skips some checks but will be faster::
128
+ You can use the makefile in the doc directory to build the documentation::
130
129
131
- $ cd doc
132
- $ make install-dependencies
133
- $ make html
130
+ $ make -C doc/ install-dependencies
131
+ $ make -C doc/ html
134
132
135
- We're reusing generated files for speed, use ``make clean `` when you want to start from scratch.
133
+ We're reusing generated files for speed, use ``make clean `` or `` tox -e docs `` when you want to start from scratch.
136
134
137
135
How to choose the target version ?
138
136
----------------------------------
Original file line number Diff line number Diff line change @@ -28,10 +28,6 @@ This ensures your testing environment is similar to Pylint's testing environment
28
28
pre-commit hooks which should take care of the autoformatting for you before each
29
29
commit. To enable it, run ``pre-commit install `` in the ``pylint `` root directory.
30
30
31
- **Even more optionally **: You can enable slow on push hooks with ``pre-commit install --install-hooks -t pre-push ``.
32
- It will do slow checks like checking that the generated documentation is up to date
33
- before each push.
34
-
35
31
Astroid installation
36
32
--------------------
37
33
Original file line number Diff line number Diff line change @@ -1501,7 +1501,7 @@ Standard Checkers
1501
1501
1502
1502
--missing-member-hint-distance
1503
1503
""""""""""""""""""""""""""""""
1504
- *The minimum edit distance a name should have in order to be considered a similar match for a missing member name. *
1504
+ *The maximum edit distance a name should have in order to be considered a similar match for a missing member name. *
1505
1505
1506
1506
**Default: ** ``1 ``
1507
1507
You can’t perform that action at this time.
0 commit comments