Skip to content

Commit e20394e

Browse files
committed
drop python3.6
github actions no longer supports it
1 parent 0fd8b01 commit e20394e

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ jobs:
1414
py: 3.9
1515
toxenv: py
1616
- os: ubuntu-latest
17-
py: pypy3
18-
toxenv: py
19-
- os: ubuntu-latest
20-
py: 3.6
17+
py: pypy3.9
2118
toxenv: py
2219
- os: ubuntu-latest
2320
py: 3.7
@@ -32,15 +29,18 @@ jobs:
3229
py: '3.10'
3330
toxenv: py
3431
- os: ubuntu-latest
35-
py: '3.11-dev'
32+
py: '3.11'
33+
toxenv: py
34+
- os: ubuntu-latest
35+
py: '3.12-dev'
3636
toxenv: py
3737
- os: ubuntu-latest
3838
py: 3.9
3939
toxenv: flake8
4040
runs-on: ${{ matrix.os }}
4141
steps:
42-
- uses: actions/checkout@v2
43-
- uses: actions/setup-python@v2
42+
- uses: actions/checkout@v3
43+
- uses: actions/setup-python@v4
4444
with:
4545
python-version: ${{ matrix.py }}
4646
- run: pip install tox

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ repos:
1111
rev: v3.9.0
1212
hooks:
1313
- id: reorder-python-imports
14-
args: [--py36-plus]
14+
args: [--py37-plus]
1515
- repo: https://github.com/asottile/pyupgrade
1616
rev: v3.3.0
1717
hooks:
1818
- id: pyupgrade
19-
args: [--py36-plus]
19+
args: [--py37-plus]
2020
- repo: https://github.com/pycqa/flake8
2121
rev: 6.0.0
2222
hooks:

setup.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def get_long_description():
3131
py_modules=['pycodestyle'],
3232
include_package_data=True,
3333
zip_safe=False,
34-
python_requires='>=3.6',
34+
python_requires='>=3.7',
3535
entry_points={
3636
'console_scripts': [
3737
'pycodestyle = pycodestyle:_main',
@@ -45,9 +45,6 @@ def get_long_description():
4545
'Operating System :: OS Independent',
4646
'Programming Language :: Python',
4747
'Programming Language :: Python :: 3',
48-
'Programming Language :: Python :: 3.6',
49-
'Programming Language :: Python :: 3.7',
50-
'Programming Language :: Python :: 3.8',
5148
'Programming Language :: Python :: Implementation :: CPython',
5249
'Programming Language :: Python :: Implementation :: PyPy',
5350
'Topic :: Software Development :: Libraries :: Python Modules',

testsuite/test_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,10 @@ def test_check_nullbytes(self):
329329
count_errors = pep8style.input_file('stdin', lines=['\x00\n'])
330330

331331
stdout = sys.stdout.getvalue()
332-
expected = "stdin:1:1: E901 ValueError"
332+
if sys.version_info < (3, 12):
333+
expected = "stdin:1:1: E901 ValueError"
334+
else:
335+
expected = "stdin:1:1: E901 SyntaxError: source code string cannot contain null bytes" # noqa: E501
333336
self.assertTrue(stdout.startswith(expected),
334337
msg='Output %r does not start with %r' %
335338
(stdout, expected))

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py36, py37, py38, py39, py310, pypy3
7+
envlist = py, pypy3
88
skip_missing_interpreters = True
99

1010
[testenv]

0 commit comments

Comments
 (0)