-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
94 lines (81 loc) · 3.79 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
[tool.poetry]
name = "taigapy"
version = "3.12.0"
description = "Client library for fetching data from Taiga"
authors = ["Your Name <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.9"
requests = "^2.28.2"
pandas = ">=1.0.0"
boto3 = "^1.26.0"
colorful = "^0.5.5"
progressbar2 = ">=3.3.0,<4.0.0"
pyarrow = ">3.0.0"
sqlite-shelve = "^2.0.1"
typing-extensions = "^4.8.0"
h5py = "^3.10.0"
google-cloud-storage = "^2.2.0"
pre-commit = "^3.7.0"
black = "^24.3.0"
[tool.poetry.group.dev.dependencies]
pytest = "^7.2.1"
pyright-ratchet = {git = "https://github.com/pgm/pyright-ratchet.git"}
commitizen = "^3.21.3"
[tool.poetry.scripts]
taigaclient = "taigapy.taiga_client_cli:main"
[tool.commitizen]
name = "cz_customize" # Must use name 'cz_customize' in order to enable customized rules defined below! Otherwise defaults to 'cz_conventional_commits'
tag_format = "$version"
version_scheme = "pep440"
version_provider = "poetry"
version = "3.12.0"
version_files = [
"pyproject.toml:version"
]
update_changelog_on_bump = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.commitizen.customize]
message_template = "{{change_type}}{% if is_breaking %}!{% endif %}: {{message}}\n\n{% if description %}{{description}}{% endif %}\n\n{% if is_breaking and footer %}BREAKING CHANGE: {{footer}}{% endif %}"
example = "feat: Add this feature that does something"
bump_pattern = "^(feat(!)?|fix(!)?|build(!)?|chore(!)?)"
bump_map = {"feat!" = "MAJOR", "fix!" = "MAJOR", "build!" = "MAJOR", "chore!" = "MAJOR", "feat" = "MINOR", "fix" = "PATCH", "build" = "PATCH", "chore" = "PATCH"}
changelog_pattern = "^(feat|fix|build|chore)(!)?:"
# Change schema_pattern if add change_type question choices
schema_pattern = "(feat|fix|test|refactor|style|docs|perf|build|chore|ci)(!)?:(\\s.*)"
# Using the customization for commitizen requires rest of customization sections defined... https://github.com/commitizen-tools/commitizen/issues/781
# Below questions are an attempt to mimic original prompts
[[tool.commitizen.customize.questions]]
type = "list"
name = "change_type"
choices = [
{value = "fix", name = "fix: A bug fix. Correlates with PATCH in SemVer"},
{value = "feat", name = "feat: A new feature. Correlates with MINOR in SemVer"},
{value = "test", name = "test: Adding missing or correcting existing tests"},
{value = "refactor", name = "refactor: A code change that neither fixes a bug nor adds a feature"},
{value = "style", name = "style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)"},
{value = "docs", name = "docs: Documentation only changes"},
{value = "perf", name = "perf: A code change that improves performance"},
{value = "build", name = "build: Changes that affect the build system or external dependencies (example scopes: pip, docker, npm)"},
{value = "chore", name = "chore: Upgrades libraries and/or performs maintenance tasks."},
{value = "ci", name = "ci: Changes to our CI configuration files and scripts (example scopes: GitLabCI, GitHub Actions)"}]
message = "Select the type of change you are committing"
[[tool.commitizen.customize.questions]]
type = "input"
name = "message"
message = "Write a short and imperative summary of the code changes:"
[[tool.commitizen.customize.questions]]
type = "input"
name = "description"
message = "Provide additional contextual information about the code changes: (press [enter] to skip)"
[[tool.commitizen.customize.questions]]
type = "confirm"
name = "is_breaking"
message = "Is this a BREAKING CHANGE? Correlates with MAJOR in SemVer"
default = false
[[tool.commitizen.customize.questions]]
type = "input"
name = "footer"
message = "Footer. Information about Breaking Changes and reference issues that this commit closes: (press [enter] to skip)"