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