Skip to content

Commit 9a89c1e

Browse files
committed
2025-12-20 13:52:24 (Sat) > DW-Mac > derekwan
1 parent ad07bbe commit 9a89c1e

File tree

5 files changed

+89
-69
lines changed

5 files changed

+89
-69
lines changed

.github/workflows/push.yaml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,4 @@
1-
name: push
2-
3-
"on":
4-
push:
5-
branches:
6-
- master
7-
81
jobs:
9-
tag:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: Tag latest commit
13-
uses: dycw/action-tag-commit@latest
14-
with:
15-
token: ${{ secrets.GITHUB_TOKEN }}
16-
172
publish:
183
environment:
194
name: pypi
@@ -33,3 +18,19 @@ jobs:
3318
run: uv build
3419
- name: Upload distribution
3520
run: uv publish --trusted-publishing always
21+
tag:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Tag latest commit
25+
uses: dycw/action-tag-commit@latest
26+
with:
27+
token: ${{ secrets.GITHUB_TOKEN }}
28+
- name: Tag latest commit
29+
uses: dycw/action-tag@latest
30+
with:
31+
token: ${{ secrets.GITHUB_TOKEN }}
32+
name: push
33+
"on":
34+
push:
35+
branches:
36+
- master

.pre-commit-config.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ repos:
55
id: ruff-check
66
- id: ruff-format
77
repo: https://github.com/astral-sh/ruff-pre-commit
8-
rev: v0.14.9
8+
rev: v0.14.10
99
- hooks:
1010
- args:
1111
- --upgrade
1212
id: uv-lock
1313
repo: https://github.com/astral-sh/uv-pre-commit
14-
rev: 0.9.17
14+
rev: 0.9.18
1515
- hooks:
1616
- args:
1717
- --option
@@ -27,20 +27,23 @@ repos:
2727
- args:
2828
- --coverage
2929
- --github--push--tag
30+
- --package-name=dycw-template
3031
- --pre-commit--prettier
3132
- --pre-commit--ruff
3233
- --pre-commit--taplo
3334
- --pre-commit--uv
3435
- --pyproject
35-
- --pyproject--project--name=template
3636
- --pyright
3737
- --pyright--include=src
3838
- --pytest
3939
- --pytest--test-paths=src/tests
40+
- --python-package-name=template
41+
- --readme
42+
- --repo-name=template
4043
- --ruff
4144
id: nitpick
4245
repo: https://github.com/dycw/pre-commit-hook-nitpick
43-
rev: 0.3.2
46+
rev: 0.4.8
4447
- hooks:
4548
- id: format-requirements
4649
- id: replace-sequence-str

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# `dycw-template`
1+
# `template`

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
[project]
99
authors = [{ email = "d.wan@icloud.com", name = "Derek Wan" }]
1010
dependencies = []
11-
name = "template"
11+
name = "dycw-template"
1212
readme = "README.md"
1313
requires-python = ">= 3.14"
1414
version = "0.1.0"
15+
16+
[tool.uv.build-backend]
17+
module-name = "template"
18+
module-root = "src"

0 commit comments

Comments
 (0)