File: pyproject.toml

package info (click to toggle)
python-babel 2.17.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,892 kB
  • sloc: python: 14,521; makefile: 177; javascript: 77; sh: 8
file content (32 lines) | stat: -rw-r--r-- 682 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
[tool.ruff]
target-version = "py38"
extend-exclude = [
    "tests/messages/data",
]

[tool.ruff.format]
quote-style = "preserve"

[tool.ruff.lint]
select = [
    "B",
    "C",
    "COM", # Trailing commas
    "E",
    "F",
    "I", # import sorting
    "SIM300", # Yoda conditions
    "UP", # upgrades
    "RUF022", # unsorted __all__
]
ignore = [
    "C901", # Complexity
    "E501", # Line length
    "E731", # Do not assign a lambda expression (we use them on purpose)
    "E741", # Ambiguous variable name
    "UP012", # "utf-8" is on purpose
    "UP031", # A bunch of places where % formatting is better
]

[tool.ruff.lint.per-file-ignores]
"scripts/import_cldr.py" = ["E402"]