Skip to content

Commit d7dec79

Browse files
committed
Initial commit
0 parents  commit d7dec79

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1610
-0
lines changed

.changelog-config.yaml

+128
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
# For more configuration information, please see https://coordt.github.io/generate-changelog/
2+
3+
# User variables for reference in other parts of the configuration.
4+
variables:
5+
repo_url: https://github.com/callowayproject/bump-my-version
6+
changelog_filename: CHANGELOG.md
7+
8+
# Pipeline to find the most recent tag for incremental changelog generation.
9+
# Leave empty to always start at first commit.
10+
starting_tag_pipeline:
11+
- action: ReadFile
12+
kwargs:
13+
filename: "{{ changelog_filename }}"
14+
- action: FirstRegExMatch
15+
kwargs:
16+
pattern: (?im)^## (?P<rev>\d+\.\d+(?:\.\d+)?)\s+\(\d+-\d{2}-\d{2}\)$
17+
named_subgroup: rev
18+
19+
# Used as the version title of the changes since the last valid tag.
20+
unreleased_label: Unreleased
21+
22+
# Process the commit's first line for use in the changelog.
23+
summary_pipeline:
24+
- action: strip_spaces
25+
- action: Strip
26+
comment: Get rid of any periods so we don't get double periods
27+
kwargs:
28+
chars: .
29+
- action: SetDefault
30+
args:
31+
- no commit message
32+
- action: capitalize
33+
- action: append_dot
34+
35+
# Process the commit's body for use in the changelog.
36+
body_pipeline:
37+
- action: ParseTrailers
38+
comment: Parse the trailers into metadata.
39+
kwargs:
40+
commit_metadata: save_commit_metadata
41+
42+
# Process and store the full or partial changelog.
43+
output_pipeline:
44+
- action: IncrementalFileInsert
45+
kwargs:
46+
filename: "{{ changelog_filename }}"
47+
last_heading_pattern: (?im)^## \d+\.\d+(?:\.\d+)?\s+\([0-9]+-[0-9]{2}-[0-9]{2}\)$
48+
49+
# Full or relative paths to look for output generation templates.
50+
template_dirs:
51+
- ".github/changelog_templates/"
52+
53+
# Group the commits within a version by these commit attributes.
54+
group_by:
55+
- metadata.category
56+
57+
# Only tags matching this regular expression are used for the changelog.
58+
tag_pattern: ^[0-9]+\.[0-9]+(?:\.[0-9]+)?$
59+
60+
# Tells ``git-log`` whether to include merge commits in the log.
61+
include_merges: false
62+
63+
# Ignore commits whose summary line matches any of these regular expression patterns.
64+
ignore_patterns:
65+
- '[@!]minor'
66+
- '[@!]cosmetic'
67+
- '[@!]refactor'
68+
- '[@!]wip'
69+
- ^$
70+
- ^Merge branch
71+
- ^Merge pull
72+
- ^Version updated
73+
74+
# Set the commit's category metadata to the first classifier that returns ``True``.
75+
commit_classifiers:
76+
- action: SummaryRegexMatch
77+
category: New
78+
kwargs:
79+
pattern: (?i)^(?:new|add)[^\n]*$
80+
- action: SummaryRegexMatch
81+
category: Updates
82+
kwargs:
83+
pattern: (?i)^(?:update|change|rename|remove|delete|improve|refactor|chg|modif)[^\n]*$
84+
- action: SummaryRegexMatch
85+
category: Fixes
86+
kwargs:
87+
pattern: (?i)^(?:fix)[^\n]*$
88+
- action:
89+
category: Other
90+
91+
# Tokens in git commit trailers that indicate authorship.
92+
valid_author_tokens:
93+
- author
94+
- based-on-a-patch-by
95+
- based-on-patch-by
96+
- co-authored-by
97+
- co-committed-by
98+
- contributions-by
99+
- from
100+
- helped-by
101+
- improved-by
102+
- original-patch-by
103+
104+
# Rules applied to commits to determine the type of release to suggest.
105+
release_hint_rules:
106+
- match_result: dev
107+
no_match_result: no-release
108+
branch: ^((?!master|main).)*$
109+
- match_result: patch
110+
no_match_result: no-release
111+
grouping: Other
112+
branch: master|main
113+
- match_result: patch
114+
no_match_result: no-release
115+
grouping: Fixes
116+
branch: master|main
117+
- match_result: minor
118+
no_match_result: no-release
119+
grouping: Updates
120+
branch: master|main
121+
- match_result: minor
122+
no_match_result: no-release
123+
grouping: New
124+
branch: master|main
125+
- match_result: major
126+
no_match_result: no-release
127+
grouping: Breaking Changes
128+
branch: master|main

.composition.yaml

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
checkout: null
2+
commit: 81c961644e8b14b3d8c77783013ca32a567f1ceb
3+
context:
4+
_copy_without_render:
5+
- .github/**/*.jinja
6+
_dev_requirements:
7+
bump2version: '>=1.0.1'
8+
generate-changelog: '>=0.7.6'
9+
git-fame: '>=1.12.2'
10+
pip-tools: ''
11+
_docs_requirements: {}
12+
_prod_requirements:
13+
environs: '>=9.3.5'
14+
_test_requirements:
15+
coverage: ~=6.1.2
16+
poetry: ~=1.3.2
17+
pre-commit: ~=2.15.0
18+
pytest: ~=6.0.0
19+
pytest-cov: ~=3.0.0
20+
author: Corey Oordt
21+
22+
friendly_name: Bump My Version
23+
github_user: callowayproject
24+
packaging_tool: pip/setuptools
25+
project_name: bump-my-version
26+
project_short_description: Version bump your Python project
27+
project_slug: bump_version
28+
version: 0.1.0
29+
directory: cookiecutter-boilerplate
30+
merge_strategies:
31+
'*.json': comprehensive
32+
'*.yaml': comprehensive
33+
'*.yml': comprehensive
34+
no_input: false
35+
overwrite: []
36+
overwrite_exclude: []
37+
password: null
38+
skip_generation: []
39+
skip_hooks: false
40+
skip_if_file_exists: true
41+
template: /Users/OORDCOR/Projects/datascience-cookiecomposer-templates/
42+
---
43+
checkout: null
44+
commit: 81c961644e8b14b3d8c77783013ca32a567f1ceb
45+
context:
46+
_copy_without_render:
47+
- .github/**/*.yaml
48+
_prod_requirements:
49+
rich-click: ''
50+
friendly_name: Bump My Version
51+
project_name: bump-my-version
52+
project_short_description: Version bump your Python project
53+
project_slug: bump_version
54+
version: 0.1.0
55+
directory: cookiecutter-cli
56+
merge_strategies:
57+
'*.cfg': comprehensive
58+
'*.json': comprehensive
59+
'*.yaml': comprehensive
60+
'*.yml': comprehensive
61+
no_input: false
62+
overwrite: []
63+
overwrite_exclude: []
64+
password: null
65+
skip_generation: []
66+
skip_hooks: false
67+
skip_if_file_exists: true
68+
template: /Users/OORDCOR/Projects/datascience-cookiecomposer-templates/
69+
---
70+
checkout: null
71+
commit: 81c961644e8b14b3d8c77783013ca32a567f1ceb
72+
context:
73+
_copy_without_render:
74+
- docsrc/**/*.rst
75+
_dev_requirements: {}
76+
_docs_requirements:
77+
Sphinx: '>=4.3.0'
78+
furo: ''
79+
ghp-import: ''
80+
linkify-it-py: ''
81+
myst-parser: ''
82+
sphinx-autodoc-typehints: ''
83+
sphinx-click: ''
84+
sphinx-copybutton: ''
85+
_prod_requirements: {}
86+
friendly_name: Bump My Version
87+
github_user: callowayproject
88+
project_name: bump-my-version
89+
project_slug: bump_version
90+
directory: cookiecutter-docs
91+
merge_strategies:
92+
'*.json': comprehensive
93+
'*.yaml': comprehensive
94+
'*.yml': comprehensive
95+
no_input: false
96+
overwrite: []
97+
overwrite_exclude: []
98+
password: null
99+
skip_generation: []
100+
skip_hooks: false
101+
skip_if_file_exists: true
102+
template: /Users/OORDCOR/Projects/datascience-cookiecomposer-templates/

.cookiecutter.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"_copy_without_render":[".github/**/*.yaml",".github/**/*.jinja","docsrc/**/*.rst"],"_dev_requirements":{"bump2version":">=1.0.1","generate-changelog":">=0.7.6","git-fame":">=1.12.2","pip-tools":""},"_docs_requirements":{"Sphinx":">=4.3.0","furo":"","ghp-import":"","linkify-it-py":"","myst-parser":"","sphinx-autodoc-typehints":"","sphinx-click":"","sphinx-copybutton":""},"_prod_requirements":{"environs":">=9.3.5","rich-click":""},"_test_requirements":{"coverage":"~=6.1.2","poetry":"~=1.3.2","pre-commit":"~=2.15.0","pytest":"~=6.0.0","pytest-cov":"~=3.0.0"},"author":"Corey Oordt","email":"[email protected]","friendly_name":"Bump My Version","github_user":"callowayproject","packaging_tool":"pip/setuptools","project_name":"bump-my-version","project_short_description":"Version bump your Python project","project_slug":"bump_version","version":"0.1.0"}

.editorconfig

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.{py,rst,ini}]
12+
indent_style = space
13+
indent_size = 4
14+
15+
[*.{html,css,scss,json,yml}]
16+
indent_style = space
17+
indent_size = 2
18+
19+
[*.md]
20+
trim_trailing_whitespace = false
21+
22+
[Makefile]
23+
indent_style = tab

.github/ISSUE_TEMPLATE.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
* bump-my-version version:
2+
* Python version:
3+
* Operating System:
4+
5+
### Description
6+
7+
Describe what you were trying to get done.
8+
Tell us what happened, what went wrong, and what you expected to happen.
9+
10+
### What I Did
11+
12+
```
13+
Paste the command(s) you ran and the output.
14+
If there was a crash, please include the traceback here.
15+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
- {{ commit.summary }} [{{ commit.short_sha }}]({{ repo_url }}/commit/{{ commit.sha }})
2+
{{ commit.body|indent(2, first=True) }}
3+
{% for key, val in commit.metadata["trailers"].items() %}
4+
{% if key not in VALID_AUTHOR_TOKENS %}
5+
**{{ key }}:** {{ val|join(", ") }}
6+
7+
{% endif %}
8+
{% endfor %}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## {{ version.label }} ({{ version.date_time.strftime("%Y-%m-%d") }})
2+
{% if version.previous_tag %}
3+
[Compare the full difference.]({{ repo_url }}/compare/{{ version.previous_tag }}...{{ version.tag }})
4+
{% endif %}

0 commit comments

Comments
 (0)