Skip to content

Commit 0895c2a

Browse files
authored
gh-97669: Create Tools/patchcheck/ directory (#98186)
Move patchcheck.py, reindent.py and untabify.py scripts to a new Tools/patchcheck/ directory.
1 parent c39a0c3 commit 0895c2a

File tree

7 files changed

+5
-8
lines changed

7 files changed

+5
-8
lines changed

.azure-pipelines/posix-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ steps:
6868
- ${{ if eq(parameters.patchcheck, 'true') }}:
6969
- script: |
7070
git fetch origin
71-
./python Tools/scripts/patchcheck.py --ci true
71+
./python Tools/patchcheck/patchcheck.py --ci true
7272
displayName: 'Run patchcheck.py'
7373
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
7474

Lib/test/test_tools/test_reindent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
from test.support.script_helper import assert_python_ok
1010
from test.support import findfile
1111

12-
from test.test_tools import scriptsdir, skip_if_missing
12+
from test.test_tools import toolsdir, skip_if_missing
1313

1414
skip_if_missing()
1515

1616
class ReindentTests(unittest.TestCase):
17-
script = os.path.join(scriptsdir, 'reindent.py')
17+
script = os.path.join(toolsdir, 'patchcheck', 'reindent.py')
1818

1919
def test_noargs(self):
2020
assert_python_ok(self.script)

Makefile.pre.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2386,7 +2386,7 @@ Python/dtoa.o: Python/dtoa.c
23862386

23872387
# Run reindent on the library
23882388
reindent:
2389-
./$(BUILDPYTHON) $(srcdir)/Tools/scripts/reindent.py -r $(srcdir)/Lib
2389+
./$(BUILDPYTHON) $(srcdir)/Tools/patchcheck/reindent.py -r $(srcdir)/Lib
23902390

23912391
# Rerun configure with the same options as it was run last time,
23922392
# provided the config.status script exists
@@ -2546,7 +2546,7 @@ funny:
25462546

25472547
# Perform some verification checks on any modified files.
25482548
patchcheck: all
2549-
$(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/patchcheck.py
2549+
$(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/patchcheck/patchcheck.py
25502550

25512551
check-limited-abi: all
25522552
$(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/stable_abi.py --all $(srcdir)/Misc/stable_abi.toml
File renamed without changes.
File renamed without changes.
File renamed without changes.

Tools/scripts/README

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ useful while building, extending or managing Python.
55
combinerefs.py A helper for analyzing PYTHONDUMPREFS output
66
idle3 Main program to start IDLE
77
parse_html5_entities.py Utility for parsing HTML5 entity definitions
8-
patchcheck.py Perform common checks and cleanup before committing
98
pydoc3 Python documentation browser
10-
reindent.py Change .py files to use 4-space indents
119
run_tests.py Run the test suite with more sensible default options
1210
stable_abi.py Stable ABI checks and file generators.
13-
untabify.py Replace tabs with spaces in argument files

0 commit comments

Comments
 (0)