Skip to content

Commit 10775df

Browse files
authored
chore(ruff): converge on the standard's ruff block (#123)
1 parent 681a420 commit 10775df

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

‎pyproject.toml‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,26 +78,25 @@ lint = [
7878
fix = true
7979
unsafe-fixes = true
8080
line-length = 120
81-
target-version = "py311"
8281

8382
[tool.ruff.lint]
8483
select = ["ALL"]
8584
ignore = [
86-
"D1", # allow missing docstrings
87-
"S101", # allow asserts
88-
"TCH", # ignore flake8-type-checking
89-
"FBT", # allow boolean args
90-
"D203", # "one-blank-line-before-class" conflicting with D211
91-
"D213", # "multi-line-summary-second-line" conflicting with D212
92-
"COM812", # flake8-commas "Trailing comma missing"
93-
"ISC001", # flake8-implicit-str-concat
85+
"D1", # docstrings are not forced; a docstring exists when it says something
86+
"D203", # conflicts with D211
87+
"D213", # conflicts with D212
88+
"COM812", # conflicts with the formatter
89+
"ISC001", # conflicts with the formatter
9490
"CPY001", # no per-file copyright header
91+
"FBT", # boolean positional arguments are fine
92+
"TCH", # imports stay real; TYPE_CHECKING-only imports break runtime introspection
9593
]
9694
isort.lines-after-imports = 2
9795
isort.no-lines-before = ["standard-library", "local-folder"]
9896

9997
[tool.ruff.lint.per-file-ignores]
10098
"src/httpware/client.py" = ["ASYNC109", "ANN401"]
99+
"tests/**" = ["S101"]
101100

102101
[tool.pytest.ini_options]
103102
addopts = "--cov=. --cov-report term-missing --cov-fail-under=100"

0 commit comments

Comments
 (0)