Skip to content

Commit dca068a

Browse files
committed
don't use label
1 parent 2b00f84 commit dca068a

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131
strategy:
3232
matrix:
33-
python-version: ['3.9', '3.10', '3.11', '3.12', 3.13]
33+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
3434
fail-fast: false
3535
steps:
3636
- uses: actions/checkout@v4
@@ -66,7 +66,6 @@ jobs:
6666
runs-on: ubuntu-latest
6767
strategy:
6868
fail-fast: false
69-
if: ${{ ! contains(github.event.issue.labels.*.name, 'skip-release') }}
7069
steps:
7170
- uses: actions/checkout@v4
7271
- name: Set up Python 3

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ default_language_version:
33
python: python3.12
44
# pyright requires internet connection to run, which the pre-commit ci app doesn't have.
55
# it instead runs in a github action
6-
# check-relase-changelog is run in CI to be able to access PR labels
6+
# check-release-changelog is run as a dedicated job
77
ci:
88
skip: [pyright, check-release-changelog]
99

@@ -107,7 +107,7 @@ repos:
107107
- id: check-release-changelog
108108
name: check-release-changelog
109109
language: system
110-
entry: python3 tests/check_changelog_and_version.py --allow-future
110+
entry: python3 tests/check_changelog_and_version.py --allow-future-in-changelog
111111
files: flake8_async/__init__.py|docs/changelog.rst
112112

113113
- repo: meta

tests/check_changelog_and_version.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
README = ROOT_PATH / "README.md"
1717
INIT_FILE = ROOT_PATH / "flake8_async" / "__init__.py"
1818

19-
ALLOW_FUTURE = "--allow-future" in sys.argv
19+
ALLOW_FUTURE = "--allow-future-in-changelog" in sys.argv
2020

2121
T = TypeVar("T", bound="Version")
2222

@@ -59,10 +59,7 @@ def get_releases() -> Iterable[Version]:
5959
last_line_was_date = True
6060
# only allow `Future\n=====` when run in pre-commit
6161
elif header_pattern.match(line):
62-
assert ALLOW_FUTURE, (
63-
"FUTURE header with no --allow-future. "
64-
"If CI you maybe want the skip-release label."
65-
)
62+
assert ALLOW_FUTURE, "FUTURE header with no --allow-future-in-changelog. "
6663
assert last_line is not None
6764
assert last_line.lower().strip() == "future"
6865
last_line = line

0 commit comments

Comments
 (0)