-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
164 lines (149 loc) · 4.04 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
[build-system]
build-backend = "hatchling.build"
requires = [
"hatchling",
]
[project]
name = "pyglotaran-extras"
description = "Supplementary package for pyglotaran with (example) plotting code."
readme = "README.md"
license = { file = "LICENSE" }
authors = [
{ name = "Joris Snellenburg", email = "j.snellenburg@gmail.com" },
{ name = "Sebastian Weigand", email = "s.weigand.phy@gmail.com" },
]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Physics",
]
dynamic = [
"version",
]
dependencies = [
"cycler>=0.10",
"docstring-parser>=0.16",
"matplotlib>=3.3",
"numpy>=1.22",
"pydantic>=2.7",
"pyglotaran>=0.7",
"ruamel-yaml>=0.18.6",
"tabulate>=0.8.9",
"xarray>=2022.3",
]
optional-dependencies.dev = [
"pyglotaran-extras[docs,test]",
]
optional-dependencies.docs = [
"autodoc-pydantic>=2.2",
"jupyterlab>=3",
"myst-nb>=1.1.1", # notebook docs
"myst-parser>=0.12",
"numpydoc>=0.8",
"sphinx>=3.2",
"sphinx-copybutton>=0.3",
"sphinx-last-updated-by-git>=0.3",
"sphinx-rtd-theme>=1.2",
"sphinxcontrib-jquery>=4.1", # Needed for the search to work Ref.: https://github.com/readthedocs/sphinx_rtd_theme/issues/1434
"sphinxcontrib-mermaid>=0.9.2",
]
optional-dependencies.test = [
"coverage[toml]",
"jsonschema>=4.22",
"nbval>=0.9.6",
"pluggy>=0.7",
"pytest>=3.7.1",
"pytest-cov>=2.5.1",
]
urls.Changelog = "https://pyglotaran-extras.readthedocs.io/en/latest/changelog.html"
urls.Documentation = "https://pyglotaran-extras.readthedocs.io"
urls."GloTarAn Ecosystem" = "https://glotaran.org"
urls.Homepage = "https://github.com/glotaran/pyglotaran-extras"
urls.Source = "https://github.com/glotaran/pyglotaran-extras"
urls.Tracker = "https://github.com/glotaran/pyglotaran-extras/issues"
[tool.hatch.version]
path = "pyglotaran_extras/__init__.py"
[tool.hatch.build.targets.sdist]
include = [
"/pyglotaran_extras",
]
[tool.hatch.envs.default]
features = [
"dev",
]
[tool.docformatter]
black = true
wrap-summaries = 99
wrap-descriptions = 99
# For now this is not used because pydoclint does not support toml when used with flake8
[tool.pydoclint]
skip-checking-short-docstrings = false
style = 'numpy'
exclude = '^(docs/|tests?/)'
require-return-section-when-returning-none = false
allow-init-docstring = true
[tool.coverage.paths]
source = [
"pyglotaran_extras",
"*/site-packages/pyglotaran_extras",
]
[tool.coverage.run]
branch = true
omit = [
'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__.:',
'if TYPE_CHECKING:',
]
[tool.mypy]
plugins = [
"pydantic.mypy",
]
python_version = "3.10"
ignore_missing_imports = true
scripts_are_modules = true
show_error_codes = true
warn_unused_ignores = true
no_implicit_optional = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
disallow_untyped_calls = true
no_implicit_reexport = true
warn_unused_configs = true
check_untyped_defs = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_incomplete_defs = false
disallow_untyped_defs = false
[tool.interrogate]
exclude = [
"docs",
"tests/*",
]
ignore-init-module = true
fail-under = 100