Minor ruff config changes.
This commit is contained in:
+13
-9
@@ -65,23 +65,24 @@ target-version = "py311"
|
|||||||
# McCabe complexity (`C901`) by default.
|
# McCabe complexity (`C901`) by default.
|
||||||
select = ["ALL"]
|
select = ["ALL"]
|
||||||
ignore = [
|
ignore = [
|
||||||
"D107",
|
"ANN101",
|
||||||
"W191",
|
"COM812",
|
||||||
"E111",
|
"COM819",
|
||||||
"E114",
|
"D107", # don't want docstrings on init functions
|
||||||
"E117",
|
|
||||||
"D203",
|
"D203",
|
||||||
"D206",
|
"D206",
|
||||||
"D212",
|
"D212",
|
||||||
"D300",
|
"D300",
|
||||||
|
"E111",
|
||||||
|
"E114",
|
||||||
|
"E117",
|
||||||
|
"ISC001",
|
||||||
|
"ISC002",
|
||||||
"Q000",
|
"Q000",
|
||||||
"Q001",
|
"Q001",
|
||||||
"Q002",
|
"Q002",
|
||||||
"Q003",
|
"Q003",
|
||||||
"COM812",
|
"W191",
|
||||||
"COM819",
|
|
||||||
"ISC001",
|
|
||||||
"ISC002",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# Allow fix for all enabled rules (when `--fix`) is provided.
|
# Allow fix for all enabled rules (when `--fix`) is provided.
|
||||||
@@ -94,6 +95,9 @@ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
|
|||||||
[tool.ruff.lint.pydocstyle]
|
[tool.ruff.lint.pydocstyle]
|
||||||
convention = "google"
|
convention = "google"
|
||||||
|
|
||||||
|
[tool.ruff.lint.flake8-annotations]
|
||||||
|
mypy-init-return = true
|
||||||
|
|
||||||
[tool.ruff.format]
|
[tool.ruff.format]
|
||||||
# Like Black, use double quotes for strings.
|
# Like Black, use double quotes for strings.
|
||||||
quote-style = "double"
|
quote-style = "double"
|
||||||
|
|||||||
Reference in New Issue
Block a user