Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1ba9469e
Commit
1ba9469e
authored
Jun 25, 2017
by
Antoine Pitrou
Committed by
Nick Coghlan
Jun 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update `make patchcheck` for blurb and NEWS.d (#2381)
parent
70cb1875
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Tools/scripts/patchcheck.py
Tools/scripts/patchcheck.py
+5
-5
No files found.
Tools/scripts/patchcheck.py
View file @
1ba9469e
...
...
@@ -192,10 +192,11 @@ def credit_given(file_paths):
return
os
.
path
.
join
(
'Misc'
,
'ACKS'
)
in
file_paths
@
status
(
"Misc/NEWS
updated
"
,
modal
=
True
)
@
status
(
"Misc/NEWS
.d updated with `blurb`
"
,
modal
=
True
)
def
reported_news
(
file_paths
):
"""Check if Misc/NEWS has been changed."""
return
os
.
path
.
join
(
'Misc'
,
'NEWS'
)
in
file_paths
"""Check if Misc/NEWS.d has been changed."""
return
any
(
p
.
startswith
(
os
.
path
.
join
(
'Misc'
,
'NEWS.d'
,
'next'
))
for
p
in
file_paths
)
@
status
(
"configure regenerated"
,
modal
=
True
,
info
=
str
)
def
regenerated_configure
(
file_paths
):
...
...
@@ -241,8 +242,7 @@ def main():
c_files
=
[
fn
for
fn
in
file_paths
if
fn
.
endswith
((
'.c'
,
'.h'
))]
doc_files
=
[
fn
for
fn
in
file_paths
if
fn
.
startswith
(
'Doc'
)
and
fn
.
endswith
((
'.rst'
,
'.inc'
))]
misc_files
=
{
os
.
path
.
join
(
'Misc'
,
'ACKS'
),
os
.
path
.
join
(
'Misc'
,
'NEWS'
)}
\
&
set
(
file_paths
)
misc_files
=
{
p
for
p
in
file_paths
if
p
.
startswith
(
'Misc'
)}
# PEP 8 whitespace rules enforcement.
normalize_whitespace
(
python_files
)
# C rules enforcement.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment