Skip to content
Merged

py311+ #1326

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:
main-windows:
uses: asottile/workflows/.github/workflows/tox.yml@v1.11.1
with:
env: '["py310"]'
env: '["py311"]'
os: windows-latest
main-linux:
uses: asottile/workflows/.github/workflows/tox.yml@v1.11.1
with:
env: '["pypy3", "py310", "py311", "py312", "py313", "py314", "py315"]'
env: '["pypy3", "py311", "py312", "py313", "py314", "py315"]'
os: ubuntu-latest
main-other:
uses: asottile/workflows/.github/workflows/tox.yml@v1.11.1
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ repos:
rev: v3.17.0
hooks:
- id: reorder-python-imports
args: [--py310-plus]
args: [--py311-plus]
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py310-plus]
args: [--py311-plus]
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v3.2.0
hooks:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ project_urls =

[options]
py_modules = pycodestyle
python_requires = >=3.10
python_requires = >=3.11
include_package_data = True
zip_safe = False

Expand Down
4 changes: 1 addition & 3 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,7 @@ def test_check_nullbytes(self):
count_errors = pep8style.input_file('stdin', lines=['\x00\n'])

stdout = sys.stdout.getvalue()
if sys.version_info < (3, 11, 4): # pragma: <3.11 cover
expected = ["stdin:1:1: E901 ValueError: source code string cannot contain null bytes"] # noqa: E501
elif sys.version_info < (3, 12): # pragma: <3.12 cover # pragma: >=3.11 cover # noqa: E501
if sys.version_info < (3, 12): # pragma: <3.12 cover
expected = ["stdin:1:1: E901 SyntaxError: source code string cannot contain null bytes"] # noqa: E501
else: # pragma: >=3.12 cover
expected = [
Expand Down
Loading