-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
136 lines (108 loc) · 3.33 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
[build-system]
requires = [
"setuptools>=61.0",
"setuptools_scm[toml]>=5",
"wheel",
# this will validate our project classifiers
"trove-classifiers",
]
build-backend = "setuptools.build_meta"
[project]
name = "tdvutil"
dynamic = [ "version" ]
description = "A few simple helper classes used by TDV Alinsa"
requires-python = ">=3.9"
license = { file = "LICENSE.txt" }
readme = "README.md"
# keywords = [ "whatever", "whatever_else" ]
authors = [ { name = "TDV Alinsa", email = "[email protected]" } ]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries",
]
dependencies = [ ]
# for e.g. "pip install mything[dev]"
# [project.optional-dependencies]
# dev = ["check-manifest"]
[project.optional-dependencies]
tests = [
'pytest>=7.0',
'pytest-cov',
# 'pytest-html',
# 'pytest-order',
# 'pytest-benchmark[histogram]>=3.2.1',
# 'responses',
]
[project.urls]
"Homepage" = "https://github.com/alinsavix/python-tdvutil"
"Bug Reports" = "https://github.com/alinsavix/python-tdvutil/issues"
"Source" = "https://github.com/alinsavix/python-tdvutil"
# This would provide a command called `sample` which executes the function
# `main` from this package when invoked:
# [project.scripts]
# sample = "sample:main"
[tool.setuptools_scm]
# For smarter version schemes and other configuration options,
# check out https://github.com/pypa/setuptools_scm
version_scheme = "no-guess-dev"
write_to = "src/_tdvutil/_version.py"
[tool.setuptools]
# our actual source code
package-dir = { "" = "src" }
[tool.setuptools.package-data]
# data files included that need to be installed
# "sample" = [ "*.dat" ]
"tdvutil" = [ "py.typed" ]
"_tdvutil" = [ "py.typed" ]
[tool.mypy]
python_version = 3.9
mypy_path = "typings"
exclude = "^(tests/|conftest\\.py|outputs/|typings/|out/)"
# follow_imports = "silent"
# ignore_missing_imports = true
namespace_packages = true
strict_optional = true
disallow_subclassing_any = false
disallow_any_generics = true
disallow_untyped_defs = true
disallow_untyped_calls = 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
[tool.isort]
sections = [ "FUTURE", "STDLIB", "FIRSTPARTY", "THIRDPARTY", "LOCALFOLDER" ]
[tool.pytest.ini_options]
log_cli = true
addopts = [
"--tb=short",
"--strict-markers",
# "--html=@rootdir@/tests/report.html",
# "--css=@rootdir@/tests/report.css",
# "--self-contained-html",
# "--cov=wowdump",
# "--cov-report=html:@rootdir@/tests/htmlcov",
"--import-mode=importlib",
]
pythonpath = [ "src" ]
console_output_style = "count"
log_auto_indent = true
norecursedirs = [ "*" ]
python_files = [ "test_*.py", "check_*.py", "example_*.py" ]
testpaths = [ "tests" ]
required_plugins = [
# "pytest-html >=3.1",
"pytest-cov >=2.12",
# "pytest-order >=1.0",
]
filterwarnings = [
# hopefully the pytest folks will give us a better way to do this at
# some point so we don't have to use `pytest_cmdline_preparse` at all
'ignore:The pytest_cmdline_preparse hook is deprecated:DeprecationWarning',
]