require python>=3.7

This commit is contained in:
Anthony Sottile 2022-07-31 19:38:54 -04:00
parent 6027577d32
commit e94fb10940
76 changed files with 337 additions and 263 deletions

View file

@ -1 +1,2 @@
"""This is here because mypy doesn't understand PEP 420."""
from __future__ import annotations

View file

@ -1,4 +1,6 @@
"""Test configuration for py.test."""
from __future__ import annotations
import sys
import flake8

View file

@ -1,4 +1,5 @@
"""Module that is off sys.path by default, for testing local-plugin-paths."""
from __future__ import annotations
class ExtensionTestPlugin2:

View file

@ -1,4 +1,6 @@
"""Test aggregation of config files and command-line options."""
from __future__ import annotations
import os
import pytest

View file

@ -1,4 +1,6 @@
"""Integration tests for the legacy api."""
from __future__ import annotations
from flake8.api import legacy

View file

@ -1,4 +1,6 @@
"""Integration tests for the checker submodule."""
from __future__ import annotations
import sys
from unittest import mock

View file

@ -1,4 +1,6 @@
"""Integration tests for the main entrypoint of flake8."""
from __future__ import annotations
import json
import os
import sys

View file

@ -1,4 +1,6 @@
"""Integration tests for plugin loading."""
from __future__ import annotations
import pytest
from flake8.main.cli import main

View file

@ -1,4 +1,6 @@
"""Shared fixtures between unit tests."""
from __future__ import annotations
import argparse
import pytest

View file

@ -1,3 +1,5 @@
from __future__ import annotations
import configparser
import sys
from unittest import mock

View file

@ -1,3 +1,5 @@
from __future__ import annotations
import importlib.machinery
import importlib.util
import os.path

View file

@ -1,3 +1,5 @@
from __future__ import annotations
import argparse
import pytest

View file

@ -1,4 +1,6 @@
"""Tests for the Application class."""
from __future__ import annotations
import argparse
import pytest

View file

@ -1,4 +1,6 @@
"""Tests for the BaseFormatter object."""
from __future__ import annotations
import argparse
import sys
from unittest import mock

View file

@ -1,4 +1,6 @@
"""Tests for the Manager object for FileCheckers."""
from __future__ import annotations
import errno
import multiprocessing
from unittest import mock

View file

@ -1,3 +1,5 @@
from __future__ import annotations
from unittest import mock
from flake8._compat import importlib_metadata

View file

@ -1,4 +1,6 @@
"""Tests for the flake8.style_guide.DecisionEngine class."""
from __future__ import annotations
import argparse
import pytest

View file

@ -1,3 +1,5 @@
from __future__ import annotations
import os.path
import pytest

View file

@ -1,4 +1,6 @@
"""Tests for the flake8.exceptions module."""
from __future__ import annotations
import pickle
import pytest

View file

@ -1,4 +1,6 @@
"""Unit tests for the FileChecker class."""
from __future__ import annotations
import argparse
from unittest import mock

View file

@ -1,4 +1,6 @@
"""Tests for the FileProcessor class."""
from __future__ import annotations
import ast
import tokenize
from unittest import mock

View file

@ -1,4 +1,6 @@
"""Tests for the FilenameOnly formatter object."""
from __future__ import annotations
import argparse
from flake8.formatting import default

View file

@ -1,4 +1,6 @@
"""Tests for Flake8's legacy API."""
from __future__ import annotations
import argparse
import configparser
import os.path

View file

@ -1,3 +1,5 @@
from __future__ import annotations
from flake8.main import options

View file

@ -1,4 +1,6 @@
"""Tests for the Nothing formatter obbject."""
from __future__ import annotations
import argparse
from flake8.formatting import default

View file

@ -1,4 +1,6 @@
"""Unit tests for flake8.options.manager.Option."""
from __future__ import annotations
import functools
from unittest import mock

View file

@ -1,4 +1,6 @@
"""Unit tests for flake.options.manager.OptionManager."""
from __future__ import annotations
import argparse
import os
from unittest import mock

View file

@ -1,3 +1,5 @@
from __future__ import annotations
import configparser
import os.path
from unittest import mock

View file

@ -1,4 +1,6 @@
"""Tests of pyflakes monkey patches."""
from __future__ import annotations
import ast
import pyflakes

View file

@ -1,4 +1,6 @@
"""Tests for the statistics module in Flake8."""
from __future__ import annotations
import pytest
from flake8 import statistics as stats

View file

@ -1,4 +1,6 @@
"""Tests for the flake8.style_guide.StyleGuide class."""
from __future__ import annotations
import argparse
from unittest import mock

View file

@ -1,4 +1,6 @@
"""Tests for flake8's utils module."""
from __future__ import annotations
import io
import logging
import os

View file

@ -1,4 +1,6 @@
"""Tests for the flake8.violation.Violation class."""
from __future__ import annotations
from unittest import mock
import pytest