-
-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy pathpyproject.toml
58 lines (47 loc) · 1.37 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
[tool.codespell]
ignore-words-list="checkin,ist"
skip = "venv,./utils/airport_timezones.json"
[tool.coverage.run]
branch = true
omit = ["**/venv/*"]
[tool.coverage.report]
show_missing = true
exclude_lines = [
# The default must be restated because the `exclude_lines` option overrides it.
"pragma: no cover",
# This is not feasible to test as it requires some really wonky module loading.
'if __name__ == "__main__":',
"if TYPE_CHECKING:",
]
[tool.pytest.ini_options]
# Don't use the seleniumbase plugin for pytest
addopts = "-p no:seleniumbase"
[tool.ruff]
line-length = 100
[tool.ruff.lint]
extend-select = [
"ANN", # flake8-annotations
"ARG", # flake8-unused-arguments
"E501", # line-too-long
"FA", # flake8-future-annotations
"G", # flake8-logging-format
"I", # isort
"N", # pep8-naming
"PIE", # flake8-pie
"PT", # flake8-pytest-style
"RUF", # Ruff-specific rules
"SLF", # flake8-self
"TC", # flake8-type-checking
"UP", # pyupgrade
]
ignore = [
# Disable disallowing the Any type
"ANN401", # any-type
# Some Pytest functions catch broad exceptions on purpose
"PT011", # pytest-raises-too-broad
]
[tool.ruff.lint.flake8-annotations]
suppress-dummy-args = true
[tool.ruff.lint.per-file-ignores]
# Don't check private-member-access in test files
"tests/*" = ["SLF001"]