-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (117 loc) · 2.98 KB
/
pyproject.toml
File metadata and controls
133 lines (117 loc) · 2.98 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "stitchee"
version = "1.10.0a4"
description = "NetCDF4 Along-existing-dimension Concatenation Service"
license = {file = "LICENSE"}
readme = "README.md"
requires-python = ">=3.12,<4"
authors = [
{ name = "Daniel Kaufman", email = "daniel.kaufman@nasa.gov" }
]
dependencies = [
"netcdf4>=1.6.5",
"xarray>=2024.3.0",
"pystac>=0.5.3",
"importlib-metadata>=8.4.0",
]
[project.urls]
Repository = "https://github.com/nasa/stitchee"
Documentation = "https://stitchee.readthedocs.io"
Changelog = "https://github.com/nasa/stitchee/blob/main/CHANGELOG.md"
"Bug Tracker" = "https://github.com/nasa/stitchee/issues"
[project.scripts]
stitchee_harmony = 'stitchee.harmony.cli:main'
stitchee = 'stitchee.cli:main'
[project.optional-dependencies]
dev = [
"pytest>=8.1.1",
"mypy>=1.9.0",
"ruff>=0.5.0",
"pytest-cov>=5.0.0",
"mkdocs>=1.6.0",
"markdown-callouts>=0.4.0",
"markdown-include>=0.8.1",
"mkdocstrings>=0.25.1",
"mkdocs-jupyter>=0.24.7",
"mkdocs-material>=9.5.22",
"mkdocstrings-python>=1.16.12",
"bump-my-version>=0.26.0",
]
harmony = [
"harmony-service-lib>=2.0.0"
]
integration = [
"harmony-py>=0.4.15"
]
[[tool.mypy.overrides]]
module = "netCDF4.*"
ignore_missing_imports = true
[tool.ruff]
builtins = ["ellipsis"]
exclude = [
".eggs",
"doc",
"_typed_ops.pyi",
]
# Allow lines to be as long as 100.
line-length = 100
target-version = "py312"
[tool.ruff.lint]
ignore = [
"E402", # module level import not at top of file
"E501", # line too long - let ruff format handle it
"E731", # do not assign a lambda expression, use a def
]
select = [
"F", # Pyflakes
"E", # Pycodestyle errors
"W", # Pycodestyle warnings
"I", # isort
"UP", # Pyupgrade
"B", # Bugbear (catches common bugs)
"C4", # Comprehensions
"SIM", # Simplifications
]
[tool.coverage.run]
concurrency = ["multiprocessing"]
[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 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__.:"
]
[tool.ruff.lint.isort]
known-first-party = ["stitchee"]
[tool.bumpversion]
current_version = "1.10.0a4"
parse = """(?x)
(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)
(?:
(?P<pre_label>a|rc)
(?P<pre_number>\\d+)
)?
"""
serialize = [
"{major}.{minor}.{patch}{pre_label}{pre_number}",
"{major}.{minor}.{patch}",
]
commit = false
tag = false
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = "version = \"{current_version}\""
replace = "version = \"{new_version}\""
[tool.bumpversion.parts.pre_label]
optional_value = "final"
values = ["a", "rc", "final"]
[tool.bumpversion.parts.pre_number]
first_value = 1