mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 10:36:53 +00:00
require python>=3.7
This commit is contained in:
parent
6027577d32
commit
e94fb10940
76 changed files with 337 additions and 263 deletions
|
|
@ -1 +1,2 @@
|
|||
"""This is here because mypy doesn't understand PEP 420."""
|
||||
from __future__ import annotations
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Test configuration for py.test."""
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
|
||||
import flake8
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
"""Module that is off sys.path by default, for testing local-plugin-paths."""
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
class ExtensionTestPlugin2:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Test aggregation of config files and command-line options."""
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
|
||||
import pytest
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Integration tests for the legacy api."""
|
||||
from __future__ import annotations
|
||||
|
||||
from flake8.api import legacy
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Integration tests for the checker submodule."""
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
from unittest import mock
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Integration tests for the main entrypoint of flake8."""
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Integration tests for plugin loading."""
|
||||
from __future__ import annotations
|
||||
|
||||
import pytest
|
||||
|
||||
from flake8.main.cli import main
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Shared fixtures between unit tests."""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
|
||||
import pytest
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import configparser
|
||||
import sys
|
||||
from unittest import mock
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import importlib.machinery
|
||||
import importlib.util
|
||||
import os.path
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
|
||||
import pytest
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Tests for the Application class."""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
|
||||
import pytest
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Tests for the BaseFormatter object."""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import sys
|
||||
from unittest import mock
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Tests for the Manager object for FileCheckers."""
|
||||
from __future__ import annotations
|
||||
|
||||
import errno
|
||||
import multiprocessing
|
||||
from unittest import mock
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from unittest import mock
|
||||
|
||||
from flake8._compat import importlib_metadata
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Tests for the flake8.style_guide.DecisionEngine class."""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
|
||||
import pytest
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import os.path
|
||||
|
||||
import pytest
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Tests for the flake8.exceptions module."""
|
||||
from __future__ import annotations
|
||||
|
||||
import pickle
|
||||
|
||||
import pytest
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Unit tests for the FileChecker class."""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
from unittest import mock
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Tests for the FileProcessor class."""
|
||||
from __future__ import annotations
|
||||
|
||||
import ast
|
||||
import tokenize
|
||||
from unittest import mock
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Tests for the FilenameOnly formatter object."""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
|
||||
from flake8.formatting import default
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Tests for Flake8's legacy API."""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import configparser
|
||||
import os.path
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from flake8.main import options
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Tests for the Nothing formatter obbject."""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
|
||||
from flake8.formatting import default
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Unit tests for flake8.options.manager.Option."""
|
||||
from __future__ import annotations
|
||||
|
||||
import functools
|
||||
from unittest import mock
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Unit tests for flake.options.manager.OptionManager."""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import os
|
||||
from unittest import mock
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import configparser
|
||||
import os.path
|
||||
from unittest import mock
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Tests of pyflakes monkey patches."""
|
||||
from __future__ import annotations
|
||||
|
||||
import ast
|
||||
|
||||
import pyflakes
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Tests for the statistics module in Flake8."""
|
||||
from __future__ import annotations
|
||||
|
||||
import pytest
|
||||
|
||||
from flake8 import statistics as stats
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Tests for the flake8.style_guide.StyleGuide class."""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
from unittest import mock
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Tests for flake8's utils module."""
|
||||
from __future__ import annotations
|
||||
|
||||
import io
|
||||
import logging
|
||||
import os
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
"""Tests for the flake8.violation.Violation class."""
|
||||
from __future__ import annotations
|
||||
|
||||
from unittest import mock
|
||||
|
||||
import pytest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue