Skip to content

Commit 8d70651

Browse files
committed
Relax ruff
1 parent 5e57bb2 commit 8d70651

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

pyproject.toml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -208,29 +208,28 @@ exclude_lines = [
208208
[tool.ruff]
209209
line-length = 120
210210
indent-width = 4
211-
target-version = "py38"
211+
target-version = "py39"
212212

213213
[tool.ruff.lint]
214-
select = ["E4", "E9", "Q"]
215-
ignore = []
214+
# Select a minimal set of rules
215+
select = [
216+
"F", # Pyflakes
217+
"E", # Pycodestyle
218+
]
219+
220+
ignore = [
221+
"E501", # Line too long
222+
]
223+
224+
# Allow fix for all enabled rules (when `--fix`) is provided.
216225
fixable = ["ALL"]
217226
unfixable = []
218227

219-
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
220-
221228
[tool.ruff.format]
222-
docstring-code-format = true
223-
quote-style = "double"
224-
# Like Black, indent with spaces, rather than tabs.
225-
indent-style = "tab"
226-
# Like Black, respect magic trailing commas.
227-
skip-magic-trailing-comma = false
228-
# Like Black, automatically detect the appropriate line ending.
229+
docstring-code-format = false
230+
indent-style = "space"
229231
line-ending = "auto"
230232

231-
[tool.ruff.lint.pydocstyle]
232-
convention = "google"
233-
234233
[tool.ruff.lint.per-file-ignores]
235234
"**/{tests,testing,docs}/*" = ["ALL"]
236-
"**__init__.py" = ["ALL"]
235+
"**__init__.py" = ["ALL"]

0 commit comments

Comments
 (0)