diff --git a/pyproject.toml b/pyproject.toml index 34d4aae..a679859 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,10 +40,9 @@ module-name = "modern_di_grpc" module-root = "" [tool.ruff] -fix = false +fix = true unsafe-fixes = true line-length = 120 -target-version = "py310" extend-exclude = ["tests/protos"] [tool.ruff.format] @@ -52,22 +51,21 @@ docstring-code-format = true [tool.ruff.lint] select = ["ALL"] ignore = [ - "D1", - "S101", - "TCH", - "FBT", - "D203", - "D213", - "COM812", - "ISC001", - "G004", + "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.extend-per-file-ignores] "tests/*.py" = ["PLR2004", "SLF001"] +"tests/**" = ["S101"] [tool.ty.src] exclude = ["tests/protos"]