Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
241 lines (206 loc) · 5.07 KB
/
Copy pathpyproject.toml
File metadata and controls
241 lines (206 loc) · 5.07 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
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "autojax"
version = "0.1.0"
description = "DiRAC: revealing the nature of dark matter with the James Webb space telescope and JAX"
license = "BSD-3-Clause"
keywords = [
"JAX",
"PyAutoGalaxy",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX",
"Operating System :: Unix",
"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 :: Implementation :: CPython",
"Topic :: Utilities",
]
homepage = "https://ickc.github.io/python-autojax"
repository = "https://github.com/ickc/python-autojax"
documentation = "https://ickc.github.io/python-autojax"
authors = ["Kolen Cheung <christian.kolen@gmail.com>"]
readme = "README.md"
packages = [
{ include = "autojax", from = "src" },
]
include = [
'CHANGELOG.md',
'LICENSE',
'README.md',
]
[tool.poetry.dependencies]
python = ">=3.9"
numpy = "*"
numba = "*"
jax = "*"
jaxlib = "*"
# extras
bump-my-version = {optional = true, version = "*"}
coloredlogs = {optional = true, version = "*"}
# tests
coverage = { optional = true, version = "*" }
pytest = {optional = true, version = "*"}
pytest-benchmark = {optional = true, version = "*"}
# docs
furo = {optional = true, version = "*"}
linkify-it-py = {optional = true, version = "*"}
myst-parser = {optional = true, version = "*"}
sphinx = {optional = true, version = "*"}
sphinx-autobuild = {optional = true, version = "*"}
sphinx-last-updated-by-git = {optional = true, version = "*"}
sphinxcontrib-apidoc = {optional = true, version = "*"}
[tool.poetry.extras]
extras = [
"bump-my-version",
"coloredlogs",
]
tests = [
"coverage",
"pytest",
]
docs = [
"furo",
"linkify-it-py",
"myst-parser",
"sphinx-autobuild",
"sphinx-last-updated-by-git",
"sphinx",
"sphinxcontrib-apidoc",
]
[tool.poetry.scripts]
autojax_arch_info = 'autojax.system.arch_info:cli'
ini_formatter = 'autojax.util.cli.ini_formatter:cli'
[tool.coverage.paths]
source = [
'src',
]
[tool.coverage.run]
branch = true
source = [
'src',
]
relative_files = true
[tool.coverage.report]
show_missing = true
precision = 2
[tool.pytest.ini_options]
python_files = [
'test_*.py',
'*_test.py',
'tests.py',
]
addopts = [
'-ra',
'--strict-markers',
'--doctest-modules',
'--doctest-glob=\*.rst',
'--tb=short',
'--benchmark-columns=mean,stddev,ops,rounds,iterations',
'--benchmark-sort=mean',
]
testpaths = [
'src/autojax',
]
[tool.isort]
line_length = 120
known_first_party = 'autojax'
default_section = 'THIRDPARTY'
forced_separate = 'tests'
profile = 'black'
skip = [
'.eggs',
'ci/templates',
'build',
'dist',
]
[tool.pylint.messages_control]
disable = "C0330, C0326"
[tool.pylint.format]
max-line-length = 120
[tool.black]
line-length = 120
target-version = ['py39']
[tool.jupytext]
formats = "ipynb,py:percent"
[tool.bumpversion]
current_version = "0.1.0"
commit = true
tag = true
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
[[tool.bumpversion.files]]
filename = "docs/conf.py"
search = 'release = "{current_version}"'
replace = 'release = "{new_version}"'
[[tool.bumpversion.files]]
filename = "src/autojax/__init__.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'
[tool.mypy]
plugins = 'numpy.typing.mypy_plugin'
#* Import discovery
mypy_path = "src"
# files
# exclude
# namespace_packages
# explicit_package_bases
ignore_missing_imports = true
# follow_imports
# follow_imports_for_stubs
# python_executable
# no_site_packages
# no_silence_site_packages
#* Platform configuration...
#* Disallow dynamic typing
disallow_any_unimported = false
disallow_any_expr = false
disallow_any_decorated = false
disallow_any_explicit = false
disallow_any_generics = true
disallow_subclassing_any = false
#* Untyped definitions and calls
disallow_untyped_calls = false
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = false
#* None and Optional handling
no_implicit_optional = true
strict_optional = true
#* Configuring warnings
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_return_any = false
warn_unreachable = true
#* Suppressing errors...
#* Miscellaneous strictness flags...
#* Configuring error messages
show_error_context = false
show_column_numbers = false
show_error_codes = true
pretty = false
color_output = true
error_summary = true
show_absolute_path = false
#* Incremental mode...
#* Advanced options...
#* Report generation...
#* Miscellaneous
# junit_xml
# scripts_are_modules
warn_unused_configs = true
# verbosity