Skip to content

Commit 1bc8a47

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

Some content is hidden

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

62 files changed

+62
-0
lines changed

example-plugin/src/flake8_example_plugin/__init__.py

+1
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

+1
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

+1
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.py

+1
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

+1
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

+1
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

+1
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

+1
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

src/flake8/checker.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Checker Manager and Checker classes."""
2+
23
from __future__ import annotations
34

45
import argparse

src/flake8/defaults.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Constants that define defaults."""
2+
23
from __future__ import annotations
34

45
import re

src/flake8/discover_files.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Functions related to discovering paths."""
2+
23
from __future__ import annotations
34

45
import logging

src/flake8/exceptions.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Exception classes for all of Flake8."""
2+
23
from __future__ import annotations
34

45

src/flake8/formatting/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
"""Submodule containing the default formatters for Flake8."""
2+
23
from __future__ import annotations

src/flake8/formatting/_windows_color.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
33
See: https://github.com/pre-commit/pre-commit/blob/cb40e96/pre_commit/color.py
44
"""
5+
56
from __future__ import annotations
67

78
import sys

src/flake8/formatting/base.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""The base class and interface for all formatting plugins."""
2+
23
from __future__ import annotations
34

45
import argparse

src/flake8/formatting/default.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Default formatting class for Flake8."""
2+
23
from __future__ import annotations
34

45
from flake8.formatting import base

src/flake8/main/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
"""Module containing the logic for the Flake8 entry-points."""
2+
23
from __future__ import annotations

src/flake8/main/application.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Module containing the application logic for Flake8."""
2+
23
from __future__ import annotations
34

45
import argparse

src/flake8/main/cli.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Command-line implementation of flake8."""
2+
23
from __future__ import annotations
34

45
import sys

src/flake8/main/debug.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Module containing the logic for our debugging logic."""
2+
23
from __future__ import annotations
34

45
import platform

src/flake8/main/options.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Contains the logic for all of the default options for Flake8."""
2+
23
from __future__ import annotations
34

45
import argparse

src/flake8/options/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010
to aggregate configuration into one object used by plugins and Flake8.
1111
1212
"""
13+
1314
from __future__ import annotations

src/flake8/options/aggregator.py

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
This holds the logic that uses the collected and merged config files and
44
applies the user-specified command-line configuration on top of it.
55
"""
6+
67
from __future__ import annotations
78

89
import argparse

src/flake8/options/config.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Config handling logic for Flake8."""
2+
23
from __future__ import annotations
34

45
import configparser

src/flake8/options/manager.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Option handling and Option management logic."""
2+
23
from __future__ import annotations
34

45
import argparse

src/flake8/options/parse_args.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Procedure for parsing args, config, loading plugins."""
2+
23
from __future__ import annotations
34

45
import argparse

src/flake8/plugins/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
"""Submodule of built-in plugins and plugin managers."""
2+
23
from __future__ import annotations

src/flake8/plugins/finder.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Functions related to finding and loading plugins."""
2+
23
from __future__ import annotations
34

45
import configparser

src/flake8/plugins/pycodestyle.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Generated using ./bin/gen-pycodestyle-plugin."""
2+
23
# fmt: off
34
from __future__ import annotations
45

src/flake8/plugins/pyflakes.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Plugin built-in to Flake8 to treat pyflakes as a plugin."""
2+
23
from __future__ import annotations
34

45
import argparse

src/flake8/plugins/reporter.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Functions for constructing the requested report plugin."""
2+
23
from __future__ import annotations
34

45
import argparse

src/flake8/processor.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Module containing our file processor that tokenizes a file for checks."""
2+
23
from __future__ import annotations
34

45
import argparse

src/flake8/statistics.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Statistic collection logic for Flake8."""
2+
23
from __future__ import annotations
34

45
from typing import Generator

src/flake8/style_guide.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Implementation of the StyleGuide used by Flake8."""
2+
23
from __future__ import annotations
34

45
import argparse

src/flake8/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Utility methods for flake8."""
2+
23
from __future__ import annotations
34

45
import fnmatch as _fnmatch

src/flake8/violation.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Contains the Violation error class used internally."""
2+
23
from __future__ import annotations
34

45
import functools

tests/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
"""This is here because mypy doesn't understand PEP 420."""
2+
23
from __future__ import annotations

tests/conftest.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test configuration for py.test."""
2+
23
from __future__ import annotations
34

45
import sys

tests/integration/subdir/aplugin.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Module that is off sys.path by default, for testing local-plugin-paths."""
2+
23
from __future__ import annotations
34

45

tests/integration/test_aggregator.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test aggregation of config files and command-line options."""
2+
23
from __future__ import annotations
34

45
import os

tests/integration/test_api_legacy.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Integration tests for the legacy api."""
2+
23
from __future__ import annotations
34

45
from flake8.api import legacy

tests/integration/test_checker.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Integration tests for the checker submodule."""
2+
23
from __future__ import annotations
34

45
import importlib.metadata

tests/integration/test_main.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Integration tests for the main entrypoint of flake8."""
2+
23
from __future__ import annotations
34

45
import json

tests/integration/test_plugins.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Integration tests for plugin loading."""
2+
23
from __future__ import annotations
34

45
import pytest

tests/unit/conftest.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Shared fixtures between unit tests."""
2+
23
from __future__ import annotations
34

45
import argparse

tests/unit/test_application.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for the Application class."""
2+
23
from __future__ import annotations
34

45
import argparse

tests/unit/test_base_formatter.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for the BaseFormatter object."""
2+
23
from __future__ import annotations
34

45
import argparse

tests/unit/test_checker_manager.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for the Manager object for FileCheckers."""
2+
23
from __future__ import annotations
34

45
import errno

tests/unit/test_decision_engine.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for the flake8.style_guide.DecisionEngine class."""
2+
23
from __future__ import annotations
34

45
import argparse

tests/unit/test_exceptions.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for the flake8.exceptions module."""
2+
23
from __future__ import annotations
34

45
import pickle

tests/unit/test_file_checker.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Unit tests for the FileChecker class."""
2+
23
from __future__ import annotations
34

45
import argparse

tests/unit/test_file_processor.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for the FileProcessor class."""
2+
23
from __future__ import annotations
34

45
import ast

tests/unit/test_filenameonly_formatter.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for the FilenameOnly formatter object."""
2+
23
from __future__ import annotations
34

45
import argparse

tests/unit/test_legacy_api.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for Flake8's legacy API."""
2+
23
from __future__ import annotations
34

45
from unittest import mock

tests/unit/test_nothing_formatter.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for the Nothing formatter obbject."""
2+
23
from __future__ import annotations
34

45
import argparse

tests/unit/test_option.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Unit tests for flake8.options.manager.Option."""
2+
23
from __future__ import annotations
34

45
import functools

tests/unit/test_option_manager.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Unit tests for flake.options.manager.OptionManager."""
2+
23
from __future__ import annotations
34

45
import argparse

tests/unit/test_pyflakes_codes.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests of pyflakes monkey patches."""
2+
23
from __future__ import annotations
34

45
import ast

tests/unit/test_statistics.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for the statistics module in Flake8."""
2+
23
from __future__ import annotations
34

45
import pytest

tests/unit/test_style_guide.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for the flake8.style_guide.StyleGuide class."""
2+
23
from __future__ import annotations
34

45
import argparse

tests/unit/test_utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for flake8's utils module."""
2+
23
from __future__ import annotations
34

45
import io

tests/unit/test_violation.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for the flake8.violation.Violation class."""
2+
23
from __future__ import annotations
34

45
from unittest import mock

0 commit comments

Comments
 (0)