-
Notifications
You must be signed in to change notification settings - Fork 203
/
pyproject.toml
60 lines (54 loc) · 1.69 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
55
56
57
58
59
60
# TOML configuration for tools that support it should be placed in this file
# We do not use pyproject.toml to describe build requirements. This file
# should only be referenced for tool configuration, not build settings!
[tool.codespell]
exclude-file = ".codespell/ignore_lines.txt"
ignore-words = ".codespell/ignore_words.txt"
[tool.ruff.lint]
# Default for `select` is ["E4", "E7", "E9", "F"]
# All additional rules must be added using `extend-select`.
extend-select = [
"UP", # pyupgrade, https://docs.astral.sh/ruff/rules/#pyupgrade-up
"D", # pydocstyle, https://docs.astral.sh/ruff/rules/#pydocstyle-d
"I", # isort, https://docs.astral.sh/ruff/rules/#isort-i
]
ignore = [
"D1", # D1xx: we do not want to force contributors to write redundant or useless docstrings
"D202", # D202: additional whitespace helps with readability
"D205", # D205: we don't want to always require a single line summary
"D211", # D211: same as D202
"D400", # D400: first line doesn't need to end in a period
]
[tool.ruff.lint.per-file-ignores]
"*test*" = ["E501"] # Tests should have long, descriptive names.
"*__init__*" = ["F401"] # Init files usually have unused imports.
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.ruff.lint.isort]
lines-after-imports = 2
section-order = [
"future",
"standard-library",
"django",
"third-party",
"first-party",
"local-folder",
]
known-first-party = [
"conf",
"api",
"ingestion_server",
"indexer_worker",
"common",
"data_augmentation",
"data_refresh",
"database",
"elasticsearch_cluster",
"legacy_data_refresh",
"maintenance",
"oauth2",
"providers",
"test",
]
[tool.ruff.lint.isort.sections]
django = ["django", "rest_framework"]