File: ruff.toml

package info (click to toggle)
python-trx-python 0.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 588 kB
  • sloc: python: 4,656; makefile: 15
file content (41 lines) | stat: -rw-r--r-- 859 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
target-version = "py312"

line-length = 88
force-exclude = true
extend-exclude = [
  "__pycache__",
  "build",
  "_version.py",
  "docs/**",
]

[lint]
select = [
  "F",      # Pyflakes
  "E",      # pycodestyle errors
  "W",      # pycodestyle warnings
  "C",      # mccabe complexity
  "B",      # flake8-bugbear
  "I",      # isort
]
ignore = [
  "B905",   # zip without explicit strict parameter
  "C901",   # too complex
  "E203",   # whitespace before ':'
]

[lint.extend-per-file-ignores]
"trx/tests/**" = ["B011"]

[lint.isort]
case-sensitive = true
combine-as-imports = true
force-sort-within-sections = true
known-first-party = ["trx"]
no-sections = false
order-by-type = true
relative-imports-order = "closest-to-furthest"
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]

[format]
quote-style = "double"