forked from UWCS/apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
52 lines (47 loc) · 1.05 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
[tool.black]
line-length = 88
target_version = ['py310']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| env
| _build
| buck-out
| build
| dist
| .venv
| venv
)/
)
'''
[tool.isort]
profile = "black"
[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/**/*",
]
# 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