forked from UWCS/apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
33 lines (29 loc) · 897 Bytes
/
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
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra"
testpaths = ["tests"]
python_files = "test_*.py"
[tool.pyright]
pythonVersion = "3.10"
pythonPlatform = "Linux"
ignore = [
"cogs/**/*", # everything, cut this down over time
"karma/**/*",
"migrations/versions",
"utils/announce_utils.py",
"roll/**/*",
"tests/**/*",
"voting/**/*",
"utils/custom_help.py",
]
# https://microsoft.github.io/pyright/#/configuration?id=diagnostic-rule-defaults
typeCheckingMode = "strict"
useLibraryCodeForTypes = true
reportMissingTypeStubs = false
reportImportCycles = false # this is actually a big issue but the bad module structure makes it hard to resolve
reportMissingParameterType = false
[tool.ruff]
target-version = "py310"
lint.select = ["E", "F", "I"] # defaults plus isort
lint.ignore = ["E501"]
exclude = ["migrations/versions/*", "models/__init__.py"]