Skip to content

Commit 4c0a7a4

Browse files
AA-Turnerhugovk
andauthored
Hugo's review
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent 819da3b commit 4c0a7a4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/reusable-change-detection.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
COMMON_ANCESTOR=$( git rev-list --first-parent --max-parents=0 --max-count=1 "${branch_pr}" )
9090
DATE=$( git log --date=iso8601 --format=%cd "${COMMON_ANCESTOR}" )
9191
92-
# Get all commits since that commit date from the base branch (eg: master or main):
92+
# Get all commits since that commit date from the base branch (eg: main):
9393
git fetch origin "${refspec_base}" --shallow-since="${DATE}" \
9494
--no-tags --prune --no-recurse-submodules
9595
env:

Tools/build/compute-changes.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
".ruff.toml",
2626
"mypy.ini",
2727
})
28-
SUFFIXES_DOCUMENTATION = frozenset({".rst", ".md"})
2928
SUFFIXES_C_OR_CPP = frozenset({".c", ".h", ".cpp"})
29+
SUFFIXES_DOCUMENTATION = frozenset({".rst", ".md"})
3030

3131

3232
@dataclass(kw_only=True, slots=True)
@@ -38,7 +38,7 @@ class Outputs:
3838
run_windows_msi: bool = False
3939

4040

41-
def compute_changes():
41+
def compute_changes() -> None:
4242
target_branch, head_branch = git_branches()
4343
if target_branch and head_branch:
4444
# Getting changed files only makes sense on a pull request
@@ -55,7 +55,7 @@ def compute_changes():
5555
print("Run tests")
5656

5757
if outputs.run_hypothesis:
58-
print("Run hypothesis tests")
58+
print("Run Hypothesis tests")
5959

6060
if outputs.run_ci_fuzz:
6161
print("Run CIFuzz tests")
@@ -155,14 +155,14 @@ def process_target_branch(outputs: Outputs, git_branch: str) -> Outputs:
155155
if not git_branch:
156156
outputs.run_tests = True
157157

158-
# Check if we should run the hypothesis tests
159-
if git_branch in {"3.8", "3.9", "3.10", "3.11"}:
160-
print("Branch too old for hypothesis tests")
158+
# Check if we should run the Hypothesis tests
159+
if git_branch in {"3.9", "3.10", "3.11"}:
160+
print("Branch too old for Hypothesis tests")
161161
outputs.run_hypothesis = False
162162
else:
163163
outputs.run_hypothesis = outputs.run_tests
164164

165-
# oss-fuzz maintains a configuration for fuzzing the main branch of
165+
# OSS-Fuzz maintains a configuration for fuzzing the main branch of
166166
# CPython, so CIFuzz should be run only for code that is likely to be
167167
# merged into the main branch; compatibility with older branches may
168168
# be broken.

0 commit comments

Comments
 (0)