-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
154 lines (133 loc) · 4.08 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
[project]
name = "zanj"
version = "0.4.0"
description = "save and load complex objects to disk without pickling"
license = "GPL-3.0-only"
authors = [
{ name = "mivanit", email = "[email protected]" }
]
readme = "README.md"
requires-python = ">=3.8"
classifiers=[
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
]
dependencies = [
"numpy>=1.24.4",
"muutils[array]>=0.8.0",
]
[project.optional-dependencies]
pandas = ["pandas>=1.5.3"]
[project.urls]
Homepage = "https://miv.name/zanj"
Repository = "https://github.com/mivanit/zanj"
Documentation = "https://miv.name/zanj/"
Issues = "https://github.com/mivanit/ZANJ/issues"
[dependency-groups]
dev = [
# typing
"mypy>=1.0.1",
# tests & coverage
"pytest>=8.2.2",
"pytest-cov>=4.1.0",
"coverage-badge>=1.1.1",
# for testing plotting and notebooks
"ipykernel>=6.23.2",
"jupyter",
"matplotlib>=3.0.0",
"plotly>=5.0.0",
# generating docs
"pdoc>=14.6.0",
# https://github.com/mivanit/muutils/security/dependabot/7
"jinja2>=3.1.5",
# lmcat -- a custom library. not exactly docs, but lets an LLM see all the code
"lmcat>=0.2.0; python_version >= '3.11'",
# tomli since no tomlib in python < 3.11
"tomli>=2.1.0; python_version < '3.11'",
]
lint = [
# lint
"pycln>=2.1.3",
"ruff>=0.4.8",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
exclude = ["tests/input_data", "tests/junk_data"]
[tool.pycln]
all = true
exclude = ["tests/input_data", "tests/junk_data"]
[tool.mypy]
exclude = ["tests/input_data", "tests/junk_data"]
show_error_codes = true
[tool.lmcat]
output = "docs/other/lmcat.txt" # changing this might mean it wont be accessible from the docs
ignore_patterns = [
"docs/**",
".venv/**",
".git/**",
".meta/**",
".ruff_cache/**",
"uv.lock",
"LICENSE",
]
[tool.lmcat.glob_process]
"[mM]akefile" = "makefile_recipes"
"*.ipynb" = "ipynb_to_md"
"*.csv" = "csv_preview_5_lines"
# for configuring this tool (makefile, make_docs.py)
# ============================================================
[tool.makefile]
[tool.makefile.docs]
output_dir = "docs"
no_clean = [
".nojekyll", # For GitHub Pages
"temp",
]
markdown_headings_increment = 2
warnings_ignore = []
[tool.makefile.docs.notebooks]
enabled = true
source_path = "."
output_path_relative = "notebooks"
[tool.makefile.docs.notebooks.descriptions]
"demo" = "Example notebook showing basic usage"
[tool.makefile.uv-exports]
args = [
"--no-hashes"
]
exports = [
# no groups, no extras, just the base dependencies
{ name = "base", groups = false, extras = false },
# all groups
{ name = "groups", groups = true, extras = false },
# only the lint group -- custom options for this
{ name = "lint", options = ["--only-group", "lint"] },
# # all groups and extras
{ name = "all", filename="requirements.txt", groups = true, extras=true },
# # all groups and extras, a different way
{ name = "all", groups = true, options = ["--all-extras"] },
]
# configures `make todo`
[tool.makefile.inline-todo]
search_dir = "."
out_file = "docs/other/todo-inline.md"
context_lines = 2
extensions = ["py", "md"]
tags = ["CRIT", "TODO", "FIXME", "HACK", "BUG", "DOC"]
exclude = [
"docs/**",
".venv/**",
]
[tool.makefile.inline-todo.tag_label_map]
"BUG" = "bug"
"TODO" = "enhancement"
"DOC" = "documentation"
# ============================================================