From 09a841bf610519ffefd2aec9c4155afd1951d872 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 29 Oct 2024 00:36:24 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.2.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.2.0...v5.0.0) - https://github.com/asottile/reorder_python_imports → https://github.com/asottile/reorder-python-imports - [github.com/asottile/reorder-python-imports: v3.0.1 → v3.14.0](https://github.com/asottile/reorder-python-imports/compare/v3.0.1...v3.14.0) - [github.com/psf/black: 22.3.0 → 24.10.0](https://github.com/psf/black/compare/22.3.0...24.10.0) - [github.com/asottile/pyupgrade: v2.32.0 → v3.19.0](https://github.com/asottile/pyupgrade/compare/v2.32.0...v3.19.0) - [github.com/asottile/setup-cfg-fmt: v1.20.1 → v2.7.0](https://github.com/asottile/setup-cfg-fmt/compare/v1.20.1...v2.7.0) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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'] From e00d7cb3a617737cdd81860e70e76b4669dd6eca Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 29 Oct 2024 00:36:53 +0000 Subject: [PATCH 2/2] [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