forked from InstituteforDiseaseModeling/laser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
180 lines (162 loc) · 4.89 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
[project]
name = "laser-core"
version = "0.1.0"
authors = [
{ name="Christopher Lorton", email="[email protected]" },
{ name="Jonathan Bloedow", email="[email protected]" },
{ name="Katherine Rosenfeld", email="[email protected]"},
{ name="Kevin McCarthy", email="[email protected]" },
]
maintainers = [
{ name="Christopher Lorton", email="[email protected]" },
{ name="Jonathan Bloedow", email="[email protected]" },
]
description = "Core functionality for the Light Agent Spatial modeling for ERadication toolkit (LASER)."
readme = "README.rst"
license = {file = "LICENSE"}
requires-python = ">=3.9"
keywords = ["spatial modeling", "disease eradication", "agent-based modeling"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
# "Programming Language :: Python :: 3.13", # Not until Numba supports it
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = [
"click", # ==8.1.7",
"numpy>=1.26.4,<2.0.0",
"numba>=0.59.1",
"polars", # ==0.19.19",
"tqdm", # ==4.66.1",
"matplotlib",
"pandas",
# "taichi",
"pytest",
]
[project.optional-dependencies]
dev = [
"pytest>=6.0",
"black",
"flake8",
]
docs = [
"sphinx>=1.3",
"sphinx-rtd-theme",
"furo",
]
test = [
"pytest>=6.0",
"pytest-cov",
"scipy",
]
[project.urls]
Homepage = "https://github.com/InstituteforDiseaseModeling/laser"
Issues = "https://github.com/InstituteforDiseaseModeling/laser/issues"
Documentation = "https://idmlaser.readthedocs.io/en/latest/"
Changelog = "https://idmlaser.readthedocs.io/en/latest/changelog.html"
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[tool.ruff.per-file-ignores]
"ci/*" = ["S"]
[tool.ruff]
extend-exclude = ["static", "ci/templates"]
ignore = [
"RUF001", # ruff-specific rules ambiguous-unicode-character-string
"S101", # flake8-bandit assert
"S308", # flake8-bandit suspicious-mark-safe-usage
"E501", # pycodestyle line-too-long
]
line-length = 140
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"E", # pycodestyle errors
"EXE", # flake8-executable
"F", # pyflakes
"I", # isort
"INT", # flake8-gettext
"PIE", # flake8-pie
"PLC", # pylint convention
"PLE", # pylint errors
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"RSE", # flake8-raise
"RUF", # ruff-specific rules
"S", # flake8-bandit
"UP", # pyupgrade
"W", # pycodestyle warnings
]
src = ["src", "tests"]
target-version = "py39"
[tool.ruff.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[tool.ruff.isort]
forced-separate = ["conftest"]
force-single-line = true
[tool.black]
line-length = 140
target-version = ["py39"]
# sample here: https://coverage.readthedocs.io/en/latest/excluding.html
[tool.coverage.report]
exclude_also = [
"if __name__ == .__main__.:",
]
[tool.bumpversion]
current_version = "0.1.0"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
search = "{current_version}"
replace = "{new_version}"
regex = false
ignore_missing_version = false
tag = true
sign_tags = false
tag_name = "v{new_version}"
tag_message = "Bump version: {current_version} → {new_version}"
allow_dirty = false
commit = true
message = "Bump version: {current_version} → {new_version}"
commit_args = ""
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
[[tool.bumpversion.files]]
filename = "README.md"
search = "/v{current_version}.svg"
replace = "/v{new_version}.svg"
[[tool.bumpversion.files]]
filename = "README.md"
search = "since v{current_version}"
replace = "since v{new_version}"
[[tool.bumpversion.files]]
filename = "README.rst"
search = "/v{current_version}.svg"
replace = "/v{new_version}.svg"
[[tool.bumpversion.files]]
filename = "README.rst"
search = "/v{current_version}...main"
replace = "/v{new_version}...main"
[[tool.bumpversion.files]]
filename = "docs/conf.py"
search = 'version = release = "{current_version}"'
replace = 'version = release = "{new_version}"'
[[tool.bumpversion.files]]
filename = "src/laser_core/__init__.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'
[[tool.bumpversion.files]]
filename = ".cookiecutterrc"
search = 'version: "{current_version}"'
replace = 'version: "{new_version}"'