-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
150 lines (132 loc) · 2.92 KB
/
pyproject.toml
File metadata and controls
150 lines (132 loc) · 2.92 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
[build-system]
requires = [
"setuptools>= 61.0.0",
"setuptools_scm[toml]>=7.0",
]
build-backend = "setuptools.build_meta"
[project]
name = "simple"
description = "A simple project template using setuptools and setuptools-scm"
dynamic = ["version"]
readme = "README.rst"
license = "MIT"
authors = [
{name = "Tracy Developer"},
{email = "developer@some.domain"},
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Framework :: tox",
"Intended Audience :: Developers",
"Operating System :: POSIX :: Linux",
"Operating System :: Unix",
"Programming Language :: Python :: 3",
"Topic :: Documentation",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Documentation",
"Topic :: Software Development :: Testing",
]
dependencies = [
'importlib-resources; python_version < "3.10"',
"munch[yaml]",
]
requires-python = ">=3.9"
[project.optional-dependencies]
dev = [
"doorstop",
"flake8",
"isort",
"mypy>=0.990",
"black >= 22.3.0",
"pylint >= 3.1.0",
]
cov = [
"covdefaults",
"coverage[toml]",
]
doc = [
"sphinx",
"sphinx_git",
"sphinxcontrib.apidoc",
"sphinx_rtd_theme<3.0", # for the version display
"sphinx-nefertiti",
"myst-parser",
#"sphinxcontrib.mermaid",
]
test = [
"pytest",
"pytest-cov",
]
[project.urls]
Homepage = "https://github.com/sarnold/simple-python-project"
Documentation = "https://sarnold.github.io/simple-python-project/"
Repository = "https://github.com/sarnold/simple-python-project.git"
Issues = "https://github.com/sarnold/simple-python-project/issues"
Changelog = "https://github.com/sarnold/simple-python-project/blob/main/CHANGELOG.rst"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools_scm]
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests",]
log_cli = true
doctest_optionflags = ["ELLIPSIS", "NORMALIZE_WHITESPACE",]
addopts = "--strict-markers"
markers = "subscript"
[tool.coverage.run]
branch = true
source_pkgs = ["src/simple"]
omit = [
"setup.py",
"scripts",
"docs",
".tox",
]
[tool.coverage.paths]
source = ["src"]
[tool.coverage.report]
fail_under = 75
show_missing = true
ignore_errors = true
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"raise AssertionError",
"if typing.TYPE_CHECKING:",
"if TYPE_CHECKING:",
]
[tool.black]
line-length = 90
skip-string-normalization = true
include = '\.py$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| build
| docs
| dist
| edm1-captures
| tests
)/
'''
[tool.pycln]
all = true
[tool.isort]
line_length = 72
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
[tool.bandit]
exclude_dirs = ["docs", "tests",]
#skips = ["B101"]
[tool.mypy]
exclude = [".tox"]