diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ab7de39..ead96d0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,29 +1,29 @@ exclude: ^tests/fixtures/ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.2.0 + rev: v5.0.0 hooks: - id: check-yaml - id: debug-statements - id: end-of-file-fixer - id: trailing-whitespace -- repo: https://github.com/asottile/reorder_python_imports - rev: v3.0.1 +- repo: https://github.com/asottile/reorder-python-imports + rev: v3.14.0 hooks: - id: reorder-python-imports args: [--application-directories, '.:src', --py36-plus] - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 24.10.0 hooks: - id: black args: [--line-length=79] - repo: https://github.com/asottile/pyupgrade - rev: v2.32.0 + rev: v3.19.0 hooks: - id: pyupgrade args: [--py36-plus] - repo: https://github.com/asottile/setup-cfg-fmt - rev: v1.20.1 + rev: v2.7.0 hooks: - id: setup-cfg-fmt args: [--min-py3-version, '3.6'] diff --git a/setup.cfg b/setup.cfg index 0c0cc53..c75ec13 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,7 +8,7 @@ url = https://github.com/pycqa/flake8-polyfill author = Ian Stapleton Cordasco author_email = graffatcolmingov@gmail.com license = MIT -license_file = LICENSE +license_files = LICENSE classifiers = Environment :: Console Framework :: Flake8 @@ -17,11 +17,6 @@ classifiers = Programming Language :: Python Programming Language :: Python :: 3 Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3.6 - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 Programming Language :: Python :: Implementation :: CPython Topic :: Software Development :: Libraries :: Python Modules Topic :: Software Development :: Quality Assurance diff --git a/setup.py b/setup.py index 6446078..e31a1ab 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ """Installation and packaging.""" + import setuptools setuptools.setup() diff --git a/src/flake8_polyfill/options.py b/src/flake8_polyfill/options.py index 57ec501..dcc78c3 100644 --- a/src/flake8_polyfill/options.py +++ b/src/flake8_polyfill/options.py @@ -1,4 +1,5 @@ """Option handling polyfill for Flake8 2.x and 3.x.""" + import optparse import os diff --git a/src/flake8_polyfill/stdin.py b/src/flake8_polyfill/stdin.py index aab1e01..79904e3 100644 --- a/src/flake8_polyfill/stdin.py +++ b/src/flake8_polyfill/stdin.py @@ -1,4 +1,5 @@ """Monkey-patching for pep8 and pycodestyle.""" + try: import pep8 except ImportError: diff --git a/src/flake8_polyfill/version.py b/src/flake8_polyfill/version.py index 429826f..54d5cf9 100644 --- a/src/flake8_polyfill/version.py +++ b/src/flake8_polyfill/version.py @@ -1,4 +1,5 @@ """Version information for Flake8 2.x and 3.x.""" + import flake8 version_info = getattr(flake8, "__version_info__", None) diff --git a/tests/test_options.py b/tests/test_options.py index 1e4f96a..e5a2e93 100644 --- a/tests/test_options.py +++ b/tests/test_options.py @@ -1,4 +1,5 @@ """Tests for our options submodule.""" + import optparse import os from unittest import mock diff --git a/tests/test_stdin.py b/tests/test_stdin.py index 212b309..f4a87e9 100644 --- a/tests/test_stdin.py +++ b/tests/test_stdin.py @@ -1,4 +1,5 @@ """Tests for polyfill's stdin monkey patching.""" + import flake8 import pep8 import pycodestyle