diff --git a/flake8p/hook.py b/flake8p/hook.py index f2ddef0..8658b2d 100644 --- a/flake8p/hook.py +++ b/flake8p/hook.py @@ -2,7 +2,6 @@ import flake8.main.cli import flake8.options.config -import sys from pathlib import Path from .util import load_flake8_from_toml, find_and_load_toml_file, normalize_from_toml diff --git a/flake8p/util.py b/flake8p/util.py index 281c08f..6e5f22f 100644 --- a/flake8p/util.py +++ b/flake8p/util.py @@ -1,6 +1,7 @@ from typing import Tuple, Any, Dict, List, Optional from pathlib import Path import configparser +import sys if sys.version_info >= (3, 11): import tomllib as toml