-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
66 lines (60 loc) · 2.67 KB
/
Copy pathpyproject.toml
File metadata and controls
66 lines (60 loc) · 2.67 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
[project]
name = "tiny-tokens"
version = "0.0.0"
description = "CLI proxy for reducing LLM token consumption"
readme = "README.md"
license = "Apache-2.0"
authors = [
{ name = "Kevin Py" },
]
requires-python = ">=3.10"
keywords = ["cli", "llm", "tokens", "proxy"]
[project.urls]
Homepage = "https://github.com/pyxel-dev/Tiny-Tokens"
Repository = "https://github.com/pyxel-dev/Tiny-Tokens"
[tool.commitizen]
name = "cz_customize"
version = "0.0.0"
version_files = ["pyproject.toml:version"]
tag_format = "v$version"
[tool.commitizen.customize]
message_template = "{{change_type}}({{custom_scope if custom_scope else scope}}): {{message}}"
example = "feat(extensions): add git"
schema = "<type>(<scope>): <body>"
schema_pattern = "(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\\(.+\\))?:\\s.+"
bump_pattern = "^(feat|fix|refactor|perf)"
bump_map = { feat = "MINOR", fix = "PATCH", refactor = "PATCH", perf = "PATCH" }
info = "Scopes: core (tito.py itself), extensions (extensions/), docs (docs/, README, CONTRIBUTING, CLAUDE.md), tests (tests/), or 'other' for anything else (the * catch-all) — you'll be asked to type it."
[[tool.commitizen.customize.questions]]
type = "list"
name = "change_type"
message = "Select the type of change you are committing"
choices = [
{ value = "feat", name = "feat: A new feature" },
{ value = "fix", name = "fix: A bug fix" },
{ value = "docs", name = "docs: Documentation only changes" },
{ value = "style", name = "style: Formatting only, no code change" },
{ value = "refactor", name = "refactor: Neither fixes a bug nor adds a feature" },
{ value = "perf", name = "perf: A code change that improves performance" },
{ value = "test", name = "test: Adding or correcting tests" },
{ value = "build", name = "build: Build process or auxiliary tools" },
{ value = "ci", name = "ci: CI configuration" },
{ value = "chore", name = "chore: Other changes that don't touch src or tests" },
{ value = "revert", name = "revert: Revert to a previous commit" },
]
[[tool.commitizen.customize.questions]]
type = "list"
name = "scope"
message = "Scope of this change"
choices = [
{ value = "core", name = "core: tito.py dispatch/registry/hook/stats/install" },
{ value = "extensions", name = "extensions: bundled or user filters (extensions/)" },
{ value = "docs", name = "docs: docs/, README, CONTRIBUTING.md, CLAUDE.md" },
{ value = "tests", name = "tests: tests/" },
{ value = "scripts", name = "scripts: scripts/" },
{ value = "*", name = "* other: anything else — type a custom scope next" },
]
[[tool.commitizen.customize.questions]]
type = "input"
name = "message"
message = "Short description of the change"