-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
65 lines (56 loc) · 1.49 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
61
62
63
64
65
[tool.black]
line-length = 88
target-version = ['py36', 'py37', 'py38']
include = '\.pyi?$'
[tool.ruff]
line-length = 121
# pyflakes, pycodestyle, isort
include = ["tests/*.py", "aiohttp_msal/**/*.py"]
[tool.ruff.lint]
select = ["F", "E", "W", "I001"]
[tool.ruff.lint.flake8-import-conventions]
# Declare the banned `from` imports.
banned-from = ["typing"]
[tool.ruff.lint.isort]
no-lines-before = ["future", "standard-library"]
[tool.mypy]
disallow_untyped_defs = true
ignore_missing_imports = true
# https://stackoverflow.com/questions/64162504/settings-for-pylint-in-setup-cfg-are-not-getting-used
[tool.pylint.'MESSAGES CONTROL']
max-line-length = 120
good-names = ["db", "fr", "cr", "k", "i"]
disable = [
"line-too-long",
"unsubscriptable-object",
"unused-argument",
"too-many-branches",
"too-many-locals",
"too-many-statements",
"too-many-instance-attributes",
"too-few-public-methods",
"R0401",
"R0801",
"wrong-import-order",
]
[tool.pylint.design]
# limiting the number of returns might discourage
# the use of guard clauses. So we increase the
# allowed number of returns from 6 to 8
max-returns = 8
[tool.pytest.ini_options]
pythonpath = [".", "src"]
filterwarnings = "ignore:.+@coroutine.+deprecated.+"
testpaths = "tests"
norecursedirs = [".git", "modules"]
log_cli = true
log_cli_level = "DEBUG"
asyncio_mode = "auto"
env = [
"X_SP_APP_PW=p1",
"X_SP_APP_ID=i1",
"X_SP_AUTHORITY=a1",
"SP_APP_PW=p2",
"SP_APP_ID=i2",
"SP_AUTHORITY=a2",
]