-
Notifications
You must be signed in to change notification settings - Fork 10
/
pyproject.toml
61 lines (53 loc) · 1.15 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
[build-system]
requires = [
"setuptools>=54",
"wheel"
]
build-backend = "setuptools.build_meta"
[tool.black]
target-version = ["py39", "py310", "py311", "py312"]
[tool.coverage.run]
plugins = ["covdefaults",]
source = ["graph_onedrive"]
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests",]
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
disallow_subclassing_any = true
no_implicit_optional = true
strict_equality = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
namespace_packages = false
[[tool.mypy.overrides]]
module = [
"testing.*",
"tests.*",
"docs.*"
]
disallow_untyped_defs = false
[tool.tox]
legacy_tox_ini = """
[tox]
envlist =
py{38,39,310}
style-and-typing
skip_missing_interpreters = true
[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps = -r{toxinidir}/requirements-dev.txt
commands =
coverage erase
coverage run -m pytest {posargs:tests}
coverage report --fail-under 55
[testenv:style-and-typing]
skip_install = true
deps = pre-commit
commands = pre-commit run --all-files
"""