-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
93 lines (79 loc) · 1.99 KB
/
pyproject.toml
File metadata and controls
93 lines (79 loc) · 1.99 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[build-system]
requires = ["flit_core"]
build-backend = "flit_core.buildapi"
[tool.flit.module]
name = "foundation"
[project]
name = "Foundation"
version = "0.0.1"
description = "Foundation"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"coloredlogs~=15.0.1",
"tabulate~=0.9.0",
]
[project.optional-dependencies]
dev = [
"genbadge[coverage,tests]~=1.1.0",
"defusedxml~=0.7.1",
"lxml~=4.9.2",
"pytest~=7.4.2",
"pytest-cov~=4.1.0",
"pytest-xdist~=3.3.1",
"pytest-asyncio",
"mypy~=1.4.0", # stactic type checker
"pre-commit~=3.2.2",
"ruff~=0.4.2",
"mdformat~=0.7.17",
"mdformat-ruff~=0.1.3",
"ipdb",
]
[tool.docformatter]
black = true
recursive = true
close-quotes-on-newline = true
wrap-summaries = 100
wrap-descriptions = 100
[tool.mypy]
python_version = "3.10"
namespace_packages = true
# The settings below are equivalent to `strict = true`
warn_unused_configs = true
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
no_implicit_reexport = true
strict_equality = true
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
[tool.coverage.run]
source = ["foundation"]
omit = [
".tox/*",
]
branch = true
parallel = true
concurrency = ["multiprocessing"]
[tool.pytest.ini_options]
# pytest document:
# https://docs.pytest.org/en/stable/reference/reference.html#configuration-options
# https://docs.pytest.org/en/stable/reference/reference.html#command-line-flags
# coverage document:
# https://coverage.readthedocs.io/en/latest/cmd.html#
# code coverage to be increased progresively to 75%
addopts = "--cov-fail-under=10 --cov-report term"
junit_suite_name = "pytest"
filterwarnings = [
"ignore::DeprecationWarning"
]