Skip to content

Commit bbba17d

Browse files
committed
fix: re-alignment with the-hatchlor-enhanced /2.
re-alignment with new .cookiecutter.json structure including toolchain selection,switch to commitizen (instead of bump-my-version/generate-changelog or python-semantic-release and gitlint), version updates of external github actions in github workflows
1 parent ac09b66 commit bbba17d

14 files changed

+182
-324
lines changed

.changelog-config.yaml

Lines changed: 0 additions & 123 deletions
This file was deleted.

.cruft.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@
1414
"github_username": "dornech",
1515
"project_repo": "https://github.com/dornech/utils-COMobjects",
1616
"pypi_username": "dornech",
17+
"tooling_environment": "commitizen",
18+
"__tooling_packages": "{'commitizen': ['commitizen'], 'semantic-release': ['semantic-release'], 'bump-my-version_and_generate-changelog': ['bump-my-version', 'generate-changelog'], 'none': []}",
19+
"commitmsg_linter": "toolchain_default",
20+
"__tooling_commitmsg_linter": "{'toolchain_default': 'commitizen', 'enforce_commitizen': 'commitizen', 'enforce_gitlint': 'gitlint', 'none': '0'}",
1721
"lock_file_support": false,
22+
"initial_commit": false,
1823
"_template": "https://github.com/dornech/the-hatchlor-enhanced.git"
1924
}
2025
},

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.github/FUNDING.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: [dornech]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: # Replace with URL

.github/workflows/build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
if: startsWith(github.ref, 'refs/tags/')
2929
steps:
3030
- name: Check out the repository
31-
uses: actions/checkout@v4
31+
uses: actions/checkout@v5
3232
- name: Set up Python
33-
uses: actions/setup-python@v5
33+
uses: actions/setup-python@v6
3434
with:
3535
python-version: '3.x'
3636
- name: Install dependencies
@@ -55,9 +55,9 @@ jobs:
5555
needs: build-test
5656
steps:
5757
- name: Check out the repository
58-
uses: actions/checkout@v4
58+
uses: actions/checkout@v5
5959
- name: Set up Python
60-
uses: actions/setup-python@v5
60+
uses: actions/setup-python@v6
6161
with:
6262
python-version: '3.x'
6363
- name: Install dependencies
@@ -84,7 +84,7 @@ jobs:
8484
id-token: write
8585
steps:
8686
- name: Download all the dists
87-
uses: actions/download-artifact@v4
87+
uses: actions/download-artifact@v5
8888
with:
8989
name: python-package-distributions
9090
path: dist/
@@ -108,7 +108,7 @@ jobs:
108108
id-token: write
109109
steps:
110110
- name: Download all the dists
111-
uses: actions/download-artifact@v4
111+
uses: actions/download-artifact@v5
112112
with:
113113
name: python-package-distributions
114114
path: dist/
@@ -129,12 +129,12 @@ jobs:
129129
id-token: write # IMPORTANT: mandatory for sigstore
130130
steps:
131131
- name: Download all the dists
132-
uses: actions/download-artifact@v4
132+
uses: actions/download-artifact@v5
133133
with:
134134
name: python-package-distributions
135135
path: dist/
136136
- name: Sign the Python 🐍 distribution 📦 with Sigstore
137-
uses: sigstore/[email protected].0
137+
uses: sigstore/[email protected].1
138138
with:
139139
inputs: >-
140140
./dist/*.tar.gz

.github/workflows/documentation.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010
# only release tags x.y.z (preceded by v)
1111
- 'v?[0-9]+.[0-9]+.[0-9]+*'
1212

13-
1413
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1514
permissions:
1615
contents: read
@@ -41,9 +40,9 @@ jobs:
4140
runs-on: ubuntu-latest
4241
steps:
4342
- name: Check out the repository
44-
uses: actions/checkout@v4
43+
uses: actions/checkout@v5
4544
- name: Set up Python
46-
uses: actions/setup-python@v5
45+
uses: actions/setup-python@v6
4746
with:
4847
python-version: '3.x'
4948
- name: Install dependencies
@@ -54,7 +53,7 @@ jobs:
5453
- name: Build documentation
5554
run: hatch run docs:build-check
5655
- name: Upload artifact
57-
uses: actions/upload-pages-artifact@v3
56+
uses: actions/upload-pages-artifact@v4
5857
with:
5958
path: ./site
6059

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- name: Check out the repository
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@v5
2929
- name: Run Labeler
3030
uses: crazy-max/[email protected]
3131
with:

.github/workflows/tests.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
branches:
99
- '*'
1010

11-
1211
concurrency:
1312
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1413
cancel-in-progress: true
@@ -35,9 +34,9 @@ jobs:
3534
runs-on: ${{ matrix.os }}
3635
steps:
3736
- name: Check out the repository
38-
uses: actions/checkout@v4
37+
uses: actions/checkout@v5
3938
- name: Set up Python ${{ matrix.python-version }}
40-
uses: actions/setup-python@v5
39+
uses: actions/setup-python@v6
4140
with:
4241
python-version: ${{ matrix.python-version }}
4342
- name: Install dependencies

.gitlint

Lines changed: 0 additions & 33 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# pre-commit defaults
2+
default_stages: [ pre-commit, pre-merge-commit, pre-push, manual ] # define default explicitly to avoid double execution for commit-msg hook for commit-msg linter
3+
default_install_hook_types: [ pre-commit, commit-msg ]
4+
5+
# pre-commit repos
16
repos:
27

38
# standard pre-commit hooks
@@ -21,7 +26,7 @@ repos:
2126
args: [ '--fix=auto' ] # replace 'auto' with 'lf' to enforce Linux/Mac line endings or 'crlf' for Windows
2227
- id: detect-private-key
2328

24-
# Ruff (replaces black, flake8, autoflake, isort and more)
29+
# ruff (replaces black, flake8, autoflake, isort and more)
2530
# - repo: https://github.com/charliermarsh/ruff-pre-commit
2631
- repo: https://github.com/astral-sh/ruff-pre-commit
2732
rev: 'v0.11.12' # make sure this is always consistent with hatch configs
@@ -38,9 +43,9 @@ repos:
3843
args: [ "--install-types", "--non-interactive", "--config-file=pyproject.toml" ]
3944
additional_dependencies: [ types-tabulate, types-cachetools ]
4045

41-
# gitlint - linter for git commit messages
42-
- repo: https://github.com/jorisroovers/gitlint
43-
rev: 'v0.19.1'
46+
# commitizen - linter for git commit messages
47+
- repo: https://github.com/commitizen-tools/commitizen
48+
rev: 'v1.17.0'
4449
hooks:
45-
- id: gitlint # this is the regular commit-msg hook
46-
- id: gitlint-ci # hook for CI environments
50+
- id: commitizen
51+
stages: [commit-msg]

0 commit comments

Comments
 (0)