From af37ce651842a6e08a4bb2638d9b5a6842cdd471 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Wed, 22 May 2024 15:28:54 -0400 Subject: [PATCH] Minor ruff config changes. --- pyproject.toml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index fd86fb0..c1524b2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"