-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
136 lines (118 loc) · 3.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
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]
build-backend = "hatchling.build"
requires = [
"hatchling",
]
[project]
name = "pyparamgui"
description = "pyglotaran notebook widgets for teaching parameter estimation examples"
readme = "README.md"
keywords = [
"pyparamgui",
]
license = { file = "LICENSE" }
authors = [
{ name = "Anmol Bhatia", email = "a.bhatia2@student.vu.nl" },
]
requires-python = ">=3.8"
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dynamic = [
"version",
]
dependencies = [
]
optional-dependencies.dev = [
"pyparamgui[docs,test]",
]
optional-dependencies.docs = [
"myst-parser>=2",
"numpydoc>=1.6",
"sphinx>=7",
"sphinx-copybutton>=0.5.2",
"sphinx-last-updated-by-git>=0.3.6",
"sphinx-rtd-theme>=1.3",
"sphinxcontrib-jquery>=4.1", # Needed for the search to work Ref.: https://github.com/readthedocs/sphinx_rtd_theme/issues/1434
]
optional-dependencies.test = [
"coverage[toml]>=7.3.2",
"pluggy>=1.3",
"pytest>=7.4.3",
"pytest-cov>=4.1",
]
urls.Changelog = "https://pyparamgui.readthedocs.io/en/latest/changelog.html"
urls.Documentation = "https://pyparamgui.readthedocs.io"
urls.Homepage = "https://github.com/glotaran/pyparamgui"
urls.Source = "https://github.com/glotaran/pyparamgui"
urls.Tracker = "https://github.com/glotaran/pyparamgui/issues"
[tool.hatch.version]
path = "pyparamgui/__init__.py"
[tool.hatch.build.targets.sdist]
include = [ "/pyparamgui", "/tests" ]
[tool.hatch.envs.default]
features = [ "dev" ]
[tool.docformatter]
black = true
wrap-summaries = 99
wrap-descriptions = 99
[tool.pydoclint]
skip-checking-short-docstrings = false
style = 'numpy'
exclude = '^(docs/|tests?/)'
require-return-section-when-returning-nothing = false
allow-init-docstring = true
[tool.pytest.ini_options]
addopts = [
"--cov=pyparamgui",
"--cov-report=term",
"--cov-report=xml",
"--cov-report=html",
"--cov-config=pyproject.toml",
]
[tool.coverage.run]
branch = true
omit = [
'pyparamgui/__init__.py',
'tests/*',
# comment the above line if you want to see if all tests did run
]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
# Have to re-enable the standard pragma
'pragma: no cover',
# Don't complain about missing debug-only code:
'def __repr__',
'if self\.debug',
# Don't complain if tests don't hit defensive assertion code:
'raise AssertionError',
'raise NotImplementedError',
# Don't complain if non-runnable code isn't run:
'if 0:',
'if __name__ == .__main__.:',
# only accessible during typechecking
'if TYPE_CHECKING:',
]
[tool.mypy]
exclude = "^docs/"
ignore_missing_imports = true
scripts_are_modules = true
show_error_codes = true
warn_unused_configs = true
warn_unused_ignores = true
strict_equality = true
# For now this is not used because pydoclint does not support toml when used with flake8
[tool.interrogate]
exclude = [ "docs", "tests" ]
ignore-init-module = true
fail-under = 100