Skip to content

Commit 6029268

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 084402d commit 6029268

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+86
-30
lines changed

bin/gen-pycodestyle-plugin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Call(NamedTuple):
4242
return cls(func.__name__, inspect.isgeneratorfunction(func), params)
4343

4444

45-
def lines() -> Generator[str, None, None]:
45+
def lines() -> Generator[str]:
4646
logical = []
4747
physical = []
4848

example-plugin/src/flake8_example_plugin/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Module for an example Flake8 plugin."""
2+
23
from __future__ import annotations
34

45
from .off_by_default import ExampleTwo

example-plugin/src/flake8_example_plugin/off_by_default.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Our first example plugin."""
2+
23
from __future__ import annotations
34

45

example-plugin/src/flake8_example_plugin/on_by_default.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Our first example plugin."""
2+
23
from __future__ import annotations
34

45

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ install_requires =
3131
mccabe>=0.7.0,<0.8.0
3232
pycodestyle>=2.12.0,<2.13.0
3333
pyflakes>=3.2.0,<3.3.0
34-
python_requires = >=3.8.1
34+
python_requires = >=3.9
3535
package_dir =
3636
=src
3737

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Packaging logic for Flake8."""
2+
23
from __future__ import annotations
34

45
import os

src/flake8/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
.. autofunction:: flake8.configure_logging
1010
1111
"""
12+
1213
from __future__ import annotations
1314

1415
import logging

src/flake8/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Module allowing for ``python -m flake8 ...``."""
2+
23
from __future__ import annotations
34

45
from flake8.main.cli import main

src/flake8/api/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
This is the only submodule in Flake8 with a guaranteed stable API. All other
44
submodules are considered internal only and are subject to change.
55
"""
6+
67
from __future__ import annotations

src/flake8/api/legacy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Previously, users would import :func:`get_style_guide` from ``flake8.engine``.
44
In 3.0 we no longer have an "engine" module but we maintain the API from it.
55
"""
6+
67
from __future__ import annotations
78

89
import argparse

0 commit comments

Comments
 (0)