Update isort configuration
This commit is contained in:
+5
-1
@@ -77,7 +77,7 @@ exclude = '''
|
|||||||
line_length = 100
|
line_length = 100
|
||||||
profile = "black"
|
profile = "black"
|
||||||
# multi_line_output=3
|
# multi_line_output=3
|
||||||
# lines_after_imports=2
|
lines_after_imports=2
|
||||||
skip_glob = ["**/.env*", "**/env/*", "**/.venv/*", "**/docs/*", "**/user_data/*"]
|
skip_glob = ["**/.env*", "**/env/*", "**/.venv/*", "**/docs/*", "**/user_data/*"]
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
@@ -129,6 +129,7 @@ extend-select = [
|
|||||||
"E", # pycodestyle
|
"E", # pycodestyle
|
||||||
"W", # pycodestyle
|
"W", # pycodestyle
|
||||||
"UP", # pyupgrade
|
"UP", # pyupgrade
|
||||||
|
"I", # isort
|
||||||
"TID", # flake8-tidy-imports
|
"TID", # flake8-tidy-imports
|
||||||
# "EXE", # flake8-executable
|
# "EXE", # flake8-executable
|
||||||
# "C4", # flake8-comprehensions
|
# "C4", # flake8-comprehensions
|
||||||
@@ -157,6 +158,9 @@ max-complexity = 12
|
|||||||
# Allow default arguments like, e.g., `data: List[str] = fastapi.Query(None)`.
|
# Allow default arguments like, e.g., `data: List[str] = fastapi.Query(None)`.
|
||||||
extend-immutable-calls = ["fastapi.Depends", "fastapi.Query"]
|
extend-immutable-calls = ["fastapi.Depends", "fastapi.Query"]
|
||||||
|
|
||||||
|
[tool.ruff.lint.isort]
|
||||||
|
lines-after-imports = 2
|
||||||
|
|
||||||
[tool.flake8]
|
[tool.flake8]
|
||||||
# Default from https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-ignore
|
# Default from https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-ignore
|
||||||
# minus E226
|
# minus E226
|
||||||
|
|||||||
Reference in New Issue
Block a user