lint
This commit is contained in:
@@ -199,8 +199,31 @@ line-length = 88
|
|||||||
target-version = "py310"
|
target-version = "py310"
|
||||||
|
|
||||||
[tool.ruff.lint]
|
[tool.ruff.lint]
|
||||||
select = ["E", "F", "I", "W"]
|
select = ["E", "F", "W", "C90", "B"]
|
||||||
ignore = ["E501"]
|
ignore = [
|
||||||
|
"E203", # Whitespace before ':'
|
||||||
|
"E501", # Line too long
|
||||||
|
"C901", # Too complex
|
||||||
|
"B019", # Use of functools.cache on methods
|
||||||
|
"E722", # Bare except
|
||||||
|
"F821", # Undefined name (for dynamic exec)
|
||||||
|
]
|
||||||
|
|
||||||
|
[tool.ruff.lint.isort]
|
||||||
|
known-third-party = ["wandb", "comet_ml"]
|
||||||
|
known-local-folder = ["src", "tests"]
|
||||||
|
# Black-compatible isort settings
|
||||||
|
force-single-line = false
|
||||||
|
combine-as-imports = true
|
||||||
|
split-on-trailing-comma = true
|
||||||
|
|
||||||
|
[tool.ruff.format]
|
||||||
|
# Use black's formatting style exactly
|
||||||
|
quote-style = "double"
|
||||||
|
indent-style = "space"
|
||||||
|
skip-magic-trailing-comma = false
|
||||||
|
line-ending = "auto"
|
||||||
|
docstring-code-format = false
|
||||||
|
|
||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
python_version = "3.10"
|
python_version = "3.10"
|
||||||
|
|||||||
Reference in New Issue
Block a user