Skip to content

Commit 154a47f

Browse files
authored
Merge pull request #1267 from PyCQA/py39-plus
py39-plus
2 parents 8e5acee + 414f470 commit 154a47f

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

.github/workflows/main.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ jobs:
1616
- os: ubuntu-latest
1717
py: pypy3.10
1818
toxenv: py
19-
- os: ubuntu-latest
20-
py: 3.8
21-
toxenv: py
2219
- os: ubuntu-latest
2320
py: 3.9
2421
toxenv: py
@@ -29,7 +26,13 @@ jobs:
2926
py: '3.11'
3027
toxenv: py
3128
- os: ubuntu-latest
32-
py: '3.12-dev'
29+
py: '3.12'
30+
toxenv: py
31+
- os: ubuntu-latest
32+
py: '3.13'
33+
toxenv: py
34+
- os: ubuntu-latest
35+
py: '3.14-dev'
3336
toxenv: py
3437
- os: ubuntu-latest
3538
py: 3.9
@@ -40,10 +43,10 @@ jobs:
4043
- uses: actions/setup-python@v4
4144
with:
4245
python-version: ${{ matrix.py }}
43-
if: matrix.py != '3.12-dev'
46+
if: matrix.py != '3.14-dev'
4447
- uses: deadsnakes/[email protected]
4548
with:
4649
python-version: ${{ matrix.py }}
47-
if: matrix.py == '3.12-dev'
50+
if: matrix.py == '3.14-dev'
4851
- run: pip install tox
4952
- run: tox -e ${{ matrix.toxenv }}

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ repos:
1111
rev: v3.13.0
1212
hooks:
1313
- id: reorder-python-imports
14-
args: [--py38-plus]
14+
args: [--py39-plus]
1515
- repo: https://github.com/asottile/pyupgrade
1616
rev: v3.17.0
1717
hooks:
1818
- id: pyupgrade
19-
args: [--py38-plus]
19+
args: [--py39-plus]
2020
- repo: https://github.com/asottile/setup-cfg-fmt
2121
rev: v2.5.0
2222
hooks:

pycodestyle.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,6 @@ def whitespace_before_parameters(logical_line, tokens):
785785
# Allow "return (a.foo for a in range(5))"
786786
not keyword.iskeyword(prev_text) and
787787
(
788-
sys.version_info < (3, 9) or
789788
# 3.12+: type is a soft keyword but no braces after
790789
prev_text == 'type' or
791790
not keyword.issoftkeyword(prev_text)
@@ -960,10 +959,8 @@ def missing_whitespace(logical_line, tokens):
960959
# Allow argument unpacking: foo(*args, **kwargs).
961960
if prev_type == tokenize.OP and prev_text in '}])' or (
962961
prev_type != tokenize.OP and
963-
prev_text not in KEYWORDS and (
964-
sys.version_info < (3, 9) or
965-
not keyword.issoftkeyword(prev_text)
966-
)
962+
prev_text not in KEYWORDS and
963+
not keyword.issoftkeyword(prev_text)
967964
):
968965
need_space = None
969966
elif text in WS_OPTIONAL_OPERATORS:

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ project_urls =
2929

3030
[options]
3131
py_modules = pycodestyle
32-
python_requires = >=3.8
32+
python_requires = >=3.9
3333
include_package_data = True
3434
zip_safe = False
3535

0 commit comments

Comments
 (0)