diff --git a/pyproject.toml b/pyproject.toml index fd351f8..6e29c51 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,10 +49,9 @@ module-name = "modern_di_taskiq" module-root = "" [tool.ruff] -fix = false +fix = true unsafe-fixes = true line-length = 120 -target-version = "py310" [tool.ruff.format] docstring-code-format = true @@ -60,20 +59,21 @@ docstring-code-format = true [tool.ruff.lint] select = ["ALL"] ignore = [ - "D1", # allow missing docstrings - "S101", # allow asserts - "TCH", # ignore flake8-type-checking - "FBT", # allow boolean args - "D203", # "one-blank-line-before-class" conflicting with D211 - "D213", # "multi-line-summary-second-line" conflicting with D212 - "COM812", # flake8-commas "Trailing comma missing" - "ISC001", # flake8-implicit-str-concat - "G004", # allow f-strings in logging + "D1", # docstrings are not forced; a docstring exists when it says something + "D203", # conflicts with D211 + "D213", # conflicts with D212 + "COM812", # conflicts with the formatter + "ISC001", # conflicts with the formatter "CPY001", # no per-file copyright header + "FBT", # boolean positional arguments are fine + "TCH", # imports stay real; TYPE_CHECKING-only imports break runtime introspection ] isort.lines-after-imports = 2 isort.no-lines-before = ["standard-library", "local-folder"] +[tool.ruff.lint.per-file-ignores] +"tests/**" = ["S101"] + [tool.pytest.ini_options] addopts = "" asyncio_mode = "auto"