File tree 3 files changed +9
-7
lines changed
3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -57,20 +57,21 @@ jobs:
57
57
- name : Get list of changed files
58
58
id : changed_files
59
59
60
- - name : ' Build changed files with nitpicks '
60
+ - name : ' Build changed files in nit-picky mode '
61
61
continue-on-error : true
62
62
run : |
63
63
# Mark files the pull request modified
64
64
touch ${{ steps.changed_files.outputs.added_modified }}
65
- # Build docs with the '-n' (nit-picky) option, convert warnings
65
+ # Build docs with the '-n' (nit-picky) option; convert warnings to annotations
66
66
make -C Doc/ PYTHON=../python SPHINXOPTS="-q -n --keep-going" html 2>&1 |
67
67
python Doc/tools/warnings-to-gh-actions.py
68
68
69
- # Ensure some files always pass Sphinx nitpicks ( missing references)
70
- - name : ' Build others with nitpicks '
69
+ # Ensure some files always pass Sphinx nit-picky mode (no missing references)
70
+ - name : ' Build known-good files in nit-picky mode '
71
71
run : |
72
72
# Mark files that must pass nit-picky
73
73
touch Doc/whatsnew/3.12.rst
74
+ touch Doc/library/sqlite3.rst
74
75
# Build docs with the '-n' (nit-picky) option, convert warnings to errors (-W)
75
76
make -C Doc/ PYTHON=../python SPHINXOPTS="-q -n -W --keep-going" html 2>&1
76
77
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
3
- """Convert Sphinx warning messages to GitHub Actions
3
+ """
4
+ Convert Sphinx warning messages to GitHub Actions.
4
5
5
6
Converts lines like:
6
7
.../Doc/library/cgi.rst:98: WARNING: reference target not found
12
13
see: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-a-warning-message
13
14
"""
14
15
15
- import sys
16
16
import re
17
+ import sys
17
18
18
19
pattern = re .compile (r'(?P<file>[^:]+):(?P<line>\d+): WARNING: (?P<msg>.+)' )
19
20
Original file line number Diff line number Diff line change @@ -1003,7 +1003,7 @@ Deprecated
1003
1003
:c:type: `PyConfig ` instead.
1004
1004
(Contributed by Victor Stinner in :gh: `77782 `.)
1005
1005
1006
- * Creating :const: ` immutable types < Py_TPFLAGS_IMMUTABLETYPE> ` with mutable
1006
+ * Creating immutable types ( :const: ` Py_TPFLAGS_IMMUTABLETYPE `) with mutable
1007
1007
bases is deprecated and will be disabled in Python 3.14.
1008
1008
1009
1009
* The ``structmember.h `` header is deprecated, though it continues to be
You can’t perform that action at this time.
0 commit comments