Minor ruff config changes.

This commit is contained in:
2024-05-22 15:28:54 -04:00
parent ccbe86623a
commit af37ce6518
+13 -9
View File
@@ -65,23 +65,24 @@ target-version = "py311"
# McCabe complexity (`C901`) by default.
select = ["ALL"]
ignore = [
"D107",
"W191",
"E111",
"E114",
"E117",
"ANN101",
"COM812",
"COM819",
"D107", # don't want docstrings on init functions
"D203",
"D206",
"D212",
"D300",
"E111",
"E114",
"E117",
"ISC001",
"ISC002",
"Q000",
"Q001",
"Q002",
"Q003",
"COM812",
"COM819",
"ISC001",
"ISC002",
"W191",
]
# 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]
convention = "google"
[tool.ruff.lint.flake8-annotations]
mypy-init-return = true
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"