-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (89 loc) · 2.45 KB
/
pyproject.toml
File metadata and controls
104 lines (89 loc) · 2.45 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
[build-system]
requires = ["hatchling>=1.26.1"]
build-backend = "hatchling.build"
[project]
name = "l2label"
version = "0.1.0"
description = "Using level-2 features for skeleton classification"
readme = "README.md"
requires-python = ">=3.9"
dependencies = [
"meshparty>=1.18.2",
"numpy>=2.0.2",
"pandas>=2.2.3",
"scipy>=1.13.1",
"xgboost>=2.1.4",
]
authors = [
{ name = "Casey Schneider-Mizell", email = "caseysm@gmail.com" },
]
classifiers = [
"License :: OSI Approved :: MIT License",
]
[dependency-groups]
dev = [
"pytest",
"pytest-cov",
"ipykernel",
"bump-my-version",
]
docs = [
"mkdocs",
"mkdocs-material",
"mkdocstrings[python]",
]
lint = [
"ruff"
]
profile = [
"scalene",
"pyinstrument",
]
[tool.uv]
default-groups = ["dev", "docs", "lint", "profile"]
[tool.bumpversion]
current_version = "0.1.0"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
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 = "v{new_version}"
commit_args = ""
pre_commit_hooks = ['uv sync', 'git add uv.lock']
post_commit_hooks = ["./.bmv-post-commit.sh"]
[[tool.bumpversion.files]]
filename = "src/l2label/__init__.py"
search = "__version__ = \"{current_version}\""
replace = "__version__ = \"{new_version}\""
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = "version = \"{current_version}\""
replace = "version = \"{new_version}\""
[tool.ruff]
extend-exclude = ["*.ipynb"]
[tool.ruff.lint]
select=["E9","F63","F7","F82"]
[tool.poe.tasks.drybump]
cmd = "uv run bump-my-version bump --dry-run --verbose"
help = "Dry run of version bump for the project. Use with 'patch', 'minor', or 'major' to specify the version change."
[tool.poe.tasks.bump]
cmd = "uv run bump-my-version bump"
help = "Bump the version number in the project. Use with 'patch', 'minor', or 'major' to specify the version change."
[tool.poe.tasks.test]
cmd = "uv run pytest --cov=l2label tests"
help = "Run pytest with code coverage."
[tool.poe.tasks.doc-preview]
cmd = "uv run mkdocs serve"
help = "Preview documentation build locally"
[tool.poe.tasks.profile-all]
cmd = "uv run scalene"
help = "Profile cpu and memory of task with scalene"
[tool.poe.tasks.profile]
cmd = "uv run pyinstrument -r html"
help = "Profile cpu of task with pyinstrument"