-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
113 lines (99 loc) · 2.27 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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
[build-system]
requires = [
"setuptools",
]
build-backend = "setuptools.build_meta"
[project]
name = "module-name"
version = "0.1.0"
requires-python = ">=3.8"
description = "Module Description"
readme = "README.md"
license = { file = "LICENSE" }
authors = [
{ email = "yourname@email.invalid", name = "[YOUR NAME]" },
]
maintainers = []
keywords = []
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
]
# Dynamic dependencies are loaded from requirements*.txt files
dynamic = [
"dependencies",
"optional-dependencies",
]
[tool.setuptools.dynamic.dependencies]
file = [
"requirements/requirements.txt",
]
[tool.setuptools.dynamic.optional-dependencies]
dev = { file = [
"requirements/requirements-dev.txt",
] }
test = { file = [
"requirements/requirements-test.txt",
] }
# Alertative way to specify dependencies
# dependencies = []
# [project.optional-dependencies]
# dev = []
# test = []
[project.urls]
homepage = "https://github.com/[ORG NAME]/[REPO NAME]"
# documentation = ""
# repository = ""
# changelog = ""
# CLI scripts if needed
# [project.scripts]
# python-src-example = "module_name.sample:main"
# [tool.setuptools.packages.find]
# where = ["src"] # ["."] by default
# include = ["*"] # ["*"] by default
# exclude = ["tests"] # empty by default
# namespaces = true # true by default
[tool.setuptools.package-data]
"module_name" = [
"py.typed",
]
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_incomplete_defs = false
disallow_untyped_defs = false
warn_unused_ignores = false
[tool.coverage.run]
branch = true
source = [
"tests",
]
source_pkgs = [
"module_name",
]
[tool.coverage.paths]
source = [
"src/",
"*/site-packages",
]
test = [
"tests/",
"*/tests",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"\\.\\.\\.",
"if TYPE_CHECKING:",
]