From 56f2b53bfa3a4a841db3d77d23fb379557ef7cf4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 23:22:14 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- setup.cfg | 7 +------ setup.py | 1 + src/flake8_polyfill/options.py | 1 + src/flake8_polyfill/stdin.py | 1 + src/flake8_polyfill/version.py | 1 + tests/test_options.py | 1 + tests/test_stdin.py | 1 + 7 files changed, 7 insertions(+), 6 deletions(-) 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