Skip to content
Merged
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 @@ -11,11 +11,11 @@ jobs:
uses: asottile/workflows/.github/workflows/tox.yml@v1.11.1
with:
# Include pypy3 + minimum py3 + maximum py3 on Windows
env: '["pypy3", "py310", "py314"]'
env: '["pypy3", "py311", "py314"]'
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

2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Useful tips:

* Be sure to install it for a version of Python which is compatible
with your codebase: ``python#.# -m pip install pyflakes`` (for example,
``python3.10 -m pip install pyflakes``)
``python3.15 -m pip install pyflakes``)

* You can also invoke Pyflakes with ``python#.# -m pyflakes .`` if you want
to run it for a specific python version.
Expand Down
12 changes: 4 additions & 8 deletions pyflakes/test/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,11 @@ def baz():
with self.makeTempFile(source) as sourcePath:
self.assertHasErrors(
sourcePath,
["""\
%s:8:12: unterminated triple-quoted string literal (detected at line 8)
[f"""\
{sourcePath}:8:12: unterminated triple-quoted string literal (detected at line 8)
'''quux'''
^
""" % (sourcePath,)])
"""])

def test_eofSyntaxError(self):
"""
Expand Down Expand Up @@ -579,11 +579,7 @@ def test_misencodedFileUTF16(self):
x = "%s"
""" % SNOWMAN).encode('utf-16')
with self.makeTempFile(source) as sourcePath:
if sys.version_info < (3, 11, 4): # pragma: <3.11 cover
expected = f"{sourcePath}: problem decoding source\n"
else: # pragma: >=3.11 cover
expected = f"{sourcePath}:1: source code string cannot contain null bytes\n" # noqa: E501

expected = f"{sourcePath}:1: source code string cannot contain null bytes\n" # noqa: E501
self.assertHasErrors(sourcePath, [expected])

def test_checkRecursive(self):
Expand Down
3 changes: 1 addition & 2 deletions pyflakes/test/test_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -1668,8 +1668,7 @@ def test_exceptionUnusedInExcept(self):
except Exception as e: pass
''', m.UnusedVariable)

@skipIf(version_info < (3, 11), 'new in Python 3.11')
def test_exception_unused_in_except_star(self): # pragma: >=3.11 cover
def test_exception_unused_in_except_star(self):
self.flakes('''
try:
pass
Expand Down
3 changes: 1 addition & 2 deletions pyflakes/test/test_type_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -830,8 +830,7 @@ def test_namedtuple_non_list_args(self):
NamedTuple("NT", y)
""")

@skipIf(version_info < (3, 11), 'new in Python 3.11')
def test_variadic_generics(self): # pragma: >=3.11 cover
def test_variadic_generics(self):
self.flakes("""
from typing import Generic
from typing import TypeVarTuple
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get_long_description():
author_email="code-quality@python.org",
url="https://github.com/PyCQA/pyflakes",
packages=["pyflakes", "pyflakes.scripts", "pyflakes.test"],
python_requires='>=3.10',
python_requires='>=3.11',
classifiers=[
"Development Status :: 6 - Mature",
"Environment :: Console",
Expand Down
Loading