File: .ruff.toml

package info (click to toggle)
python3.14 3.14.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 130,180 kB
  • sloc: python: 756,125; ansic: 717,520; xml: 31,250; sh: 5,990; cpp: 4,063; makefile: 1,999; objc: 787; lisp: 502; javascript: 136; asm: 75; csh: 12
file content (40 lines) | stat: -rw-r--r-- 1,197 bytes parent folder | download | duplicates (3)
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
extend = "../../.ruff.toml"  # Inherit the project-wide settings

[per-file-target-version]
"deepfreeze.py" = "py311"  # requires `code.co_exceptiontable`
"stable_abi.py" = "py311"  # requires 'tomllib'

[format]
preview = true
docstring-code-format = true

[lint]
select = [
    "C4",      # flake8-comprehensions
    "E",       # pycodestyle
    "F",       # pyflakes
    "I",       # isort
    "ISC",     # flake8-implicit-str-concat
    "LOG",     # flake8-logging
    "PGH",     # pygrep-hooks
    "PT",      # flake8-pytest-style
    "PYI",     # flake8-pyi
    "RUF100",  # Ban unused `# noqa` comments
    "UP",      # pyupgrade
    "W",       # pycodestyle
    "YTT",     # flake8-2020
]
ignore = [
    "E501",    # Line too long
    "F541",    # f-string without any placeholders
    "PYI024",  # Use `typing.NamedTuple` instead of `collections.namedtuple`
    "PYI025",  # Use `from collections.abc import Set as AbstractSet`
]

[lint.per-file-ignores]
"{check_extension_modules,freeze_modules}.py" = [
    "UP031",  # Use format specifiers instead of percent format
]
"generate_{re_casefix,sre_constants,token}.py" = [
    "UP031",  # Use format specifiers instead of percent format
]