1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
# SPDX-FileCopyrightText: Peter Pentchev <roam@ringlet.net>
# SPDX-License-Identifier: BSD-2-Clause
[tool.ruff]
target-version = "py37"
line-length = 100
select = []
ignore = [
# We know what "self" is... I hope
"ANN101",
# We leave most of the formatting to the `black` tool
"COM812",
# No blank lines before the class docstring, TYVM
"D203",
# The multi-line docstring summary starts on the same line
"D213",
# We still need to support Python 3.6, so no `__future__.annotations`
"FA100",
# We need to rework our exceptions hierarchy... later
"EM101",
"EM102",
"TRY003",
]
[tool.ruff.isort]
force-single-line = true
known-first-party = ["confget"]
lines-after-imports = 2
single-line-exclusions = ["typing"]
[tool.ruff.per-file-ignores]
# This is a standalone command-line tool, at least for the present.
# Also, its main job is generating files.
"../t/defs/tools/generate.py" = ["INP001", "T201"]
# This is a console command-line tool, output is part of its job.
"src/confget/__main__.py" = ["T201"]
# This is a unit tests suite, assertions are kind of the point.
"unit_tests/**.py" = ["S101"]
|