File: pyproject.toml

package info (click to toggle)
confget 5.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 736 kB
  • sloc: python: 1,017; ansic: 893; sh: 770; makefile: 142
file content (45 lines) | stat: -rw-r--r-- 1,134 bytes parent folder | download | duplicates (2)
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"]