Debian Codegraph @

pyproject.toml

raw
1 [tool.ruff]
2 target-version = "py38"
3 extend-exclude = [
4 "tests/messages/data",
5 ]
6 line-length = 95
7
8 [tool.ruff.format]
9 quote-style = "preserve"
10
11 [tool.ruff.lint]
12 select = [
13 "B",
14 "C",
15 "COM", # Trailing commas
16 "E",
17 "F",
18 "I", # import sorting
19 "SIM300", # Yoda conditions
20 "UP", # upgrades
21 "RUF022", # unsorted __all__
22 ]
23 ignore = [
24 "C901", # Complexity
25 "E501", # Line length
26 "E731", # Do not assign a lambda expression (we use them on purpose)
27 "E741", # Ambiguous variable name
28 "UP012", # "utf-8" is on purpose
29 "UP031", # A bunch of places where % formatting is better
30 ]
31
32 [tool.ruff.lint.per-file-ignores]
33 "scripts/import_cldr.py" = ["E402"]
34
35 [tool.pytest.ini_options]
36 norecursedirs = [
37 "venv*",
38 ".*",
39 "_*",
40 "scripts",
41 "{args}"
42 ]
43 doctest_optionflags = [
44 "ELLIPSIS",
45 "NORMALIZE_WHITESPACE",
46 "IGNORE_EXCEPTION_DETAIL"
47 ]
48 markers = [
49 "all_locales: parameterize test with all locales"
50 ]
51 filterwarnings = [
52 # The doctest for format_number would raise this, but we don't really want to see it.
53 "ignore:babel.numbers.format_decimal:DeprecationWarning",
54 # FixedOffsetTimezone is still being tested, but we don't want to see the deprecation warning.
55 "ignore:.*FixedOffsetTimezone:DeprecationWarning",
56 ]