-
Notifications
You must be signed in to change notification settings - Fork 453
/
Copy pathpyproject.toml
54 lines (50 loc) · 1.12 KB
/
pyproject.toml
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
46
47
48
49
50
51
52
53
54
[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"]
[tool.pytest.ini_options]
norecursedirs = [
"venv*",
".*",
"_*",
"scripts",
"{args}"
]
doctest_optionflags = [
"ELLIPSIS",
"NORMALIZE_WHITESPACE",
"ALLOW_UNICODE",
"IGNORE_EXCEPTION_DETAIL"
]
markers = [
"all_locales: parameterize test with all locales"
]
filterwarnings = [
# The doctest for format_number would raise this, but we don't really want to see it.
"ignore:babel.numbers.format_decimal:DeprecationWarning"
]