big fix imports
This commit is contained in:
@@ -30,3 +30,64 @@ dependencies = [
|
||||
[build-system]
|
||||
requires = ["poetry-core>=2.0.0,<3.0.0"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
|
||||
[tool.ruff]
|
||||
# Exclude commonly ignored directories and files.
|
||||
exclude = [
|
||||
".bzr",
|
||||
".direnv",
|
||||
".eggs",
|
||||
".git",
|
||||
".git-rewrite",
|
||||
".hg",
|
||||
".ipynb_checkpoints",
|
||||
".mypy_cache",
|
||||
".nox",
|
||||
".pants.d",
|
||||
".pyenv",
|
||||
".pytest_cache",
|
||||
".pytype",
|
||||
".ruff_cache",
|
||||
".svn",
|
||||
".tox",
|
||||
".venv",
|
||||
".vscode",
|
||||
"__pypackages__",
|
||||
"_build",
|
||||
"buck-out",
|
||||
"build",
|
||||
"dist",
|
||||
"node_modules",
|
||||
"site-packages",
|
||||
"venv",
|
||||
]
|
||||
# Set the maximum line length for both linting and formatting.
|
||||
line-length = 88
|
||||
# Assume Python 3.9 for compatibility checks.
|
||||
target-version = "py39"
|
||||
# Enable preview features for early access to new rules and formatting changes.
|
||||
preview = true
|
||||
|
||||
[tool.ruff.lint]
|
||||
# Select specific rule groups to enable.
|
||||
# 'E' for pycodestyle, 'F' for Pyflakes, 'I' for isort, 'B' for flake8-bugbear.
|
||||
select = [
|
||||
"E",
|
||||
"F",
|
||||
"I",
|
||||
"B",
|
||||
"UP", # pyupgrade
|
||||
"SIM", # flake8-simplify
|
||||
]
|
||||
# Ignore specific rules within the selected groups.
|
||||
ignore = [
|
||||
"UP035",
|
||||
"B903",
|
||||
"B904",
|
||||
"E501",
|
||||
"B008",
|
||||
]
|
||||
|
||||
[tool.ruff.format]
|
||||
# Enable Ruff's formatter.
|
||||
docstring-code-format = true
|
||||
Reference in New Issue
Block a user