Remove unecessary --fix-imports lint flag

This commit is contained in:
gabrii
2025-09-25 18:04:32 +02:00
parent fe505d8846
commit f39ce829ed
+2 -10
View File
@@ -41,13 +41,6 @@ def test(coverage, filter):
@click.command()
@click.option(
"-f",
"--fix-imports",
default=True,
is_flag=True,
help="Fix imports using isort, before linting",
)
@click.option(
"-c",
"--check",
@@ -55,7 +48,7 @@ def test(coverage, filter):
is_flag=True,
help="Don't make any changes to files, just confirm they are formatted correctly",
)
def lint(fix_imports, check):
def lint(check):
"""Lint and check code style with black, flake8 and isort."""
skip = [
"requirements",
@@ -85,7 +78,6 @@ def lint(fix_imports, check):
if check:
isort_args.append("--check")
black_args.append("--check")
if fix_imports:
execute_tool("Fixing import order", "isort", *isort_args)
execute_tool("Fixing import order", "isort", *isort_args)
execute_tool("Formatting style", "black", *black_args)
execute_tool("Checking code style", "flake8")