-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
138 lines (118 loc) · 3.71 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "zema_emc_annotated"
version = "0.7.1"
description = "API to the annotated ZeMA dataset about an electro-mechanical cylinder"
authors = [
"Bjoern Ludwig <bjoern.ludwig@ptb.de>",
"Tanja Dorst",
"Maximilian Gruber <maximilian.gruber@ptb.de>",
"Anupam Prasad Vedurmudi <anupam.vedurmudi@ptb.de>",
]
readme = "README.md"
packages = [{include = "zema_emc_annotated", from = "src"}]
keywords = [
"FAIR data",
"measurement uncertainty",
]
license = "MIT"
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Mathematics",
]
[tool.poetry.dependencies]
python = "^3.10"
h5py = "^3.7.0"
numpy = "^1.24.1"
pooch = "^1.6.0"
tqdm = "^4.64.1"
ipython = {version = "^8.8.0", optional = true}
myst-parser = {version = "^0.18.1", optional = true}
nbsphinx = {version = "^0.8.12", optional = true}
sphinx = {version = "^5.3.0", optional = true}
sphinx-rtd-theme = {version = "^1.1.1", optional = true}
[tool.poetry.extras]
docs = [
"ipython",
"myst-parser",
"nbsphinx",
"sphinx",
"sphinx-rtd-theme",
]
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = "^7.2.0"
pytest-cov = "^4.0.0"
pytest-custom-exit-code = "^0.3.0"
hypothesis = {extras = ["numpy"], version = "^6.61.0"}
[tool.poetry.group.lint]
optional = true
[tool.poetry.group.lint.dependencies]
mypy = "^0.991"
pylint = "^2.15.9"
flake8 = "^6.0.0"
flake8-pyproject = "^1.2.2"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
black = {extras = ["jupyter"], version = "^22.12.0"}
cffconvert = "^2.0.0"
[tool.poetry.group.release]
optional = true
[tool.poetry.group.release.dependencies]
python-semantic-release = "^7.32.2"
[tool.poetry.group.examples]
optional = true
[tool.poetry.group.examples.dependencies]
notebook = "^6.5.2"
jupyter-nbextensions-configurator = "^0.6.1"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "--strict-markers --suppress-no-test-exit-code --color=yes --cov-branch -v"
filterwarnings = "error"
markers = "webtest: mark a test as requiring internet connection"
[tool.mypy]
exclude = ["^build/", "^venv/"]
scripts_are_modules = true
warn_unused_ignores = true
show_error_codes = true
enable_error_code = "ignore-without-code"
strict = true
[[tool.mypy.overrides]]
module = ["setuptools.*", "h5py.*", "pooch.*", "hypothesis.*", "pytest.*"]
ignore_missing_imports = true
[tool.semantic_release]
branch = "main"
version_toml = "pyproject.toml:tool.poetry.version"
version_variable = "docs/conf.py:version"
version_pattern = [
"CITATION.cff:^version: {version}",
"README.md:readthedocs.org/projects/zema-emc-annotated/badge/.version=v{version}",
"README.md:\\)\\]\\(https://zema-emc-annotated.readthedocs.io/en/v{version}",
"README.md:s\\]\\(https://zema-emc-annotated.readthedocs.io/en/v{version}",
]
major_on_zero = false
changelog_sections = "feature,fix,breaking,documentation,performance"
changelog_components = "semantic_release.changelog.changelog_headers,semantic_release.changelog.compare_url"
upload_to_repository = true
upload_to_release = true
build_command = "poetry build"
hvcs = "github"
commit_author= "Bjoern Ludwig <bjoern.ludwig@ptb.de>"
[tool.flake8]
max-line-length = 88
extend-ignore = "E203"
exclude = "venv"
[tool.pylint.format]
# Maximum number of characters on a single line.
max-line-length = 88
[tool.pylint.typecheck]
# List of members which are set dynamically and missed by pylint inference
# system, and so shouldn't trigger E1101 when accessed. Python regular
# expressions are accepted.
#generated-members = "<package-name>.*"