Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
search = "version = \"{current_version}\""

[[tool.bumpversion.files]]
filename = "src/template/__init__.py"
filename = "src/template_python/__init__.py"
replace = "__version__ = \"{new_version}\""
search = "__version__ = \"{current_version}\""
27 changes: 12 additions & 15 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@
name: push

"on":
push:
branches:
- master

jobs:
tag:
runs-on: ubuntu-latest
steps:
- name: Tag latest commit
uses: dycw/action-tag-commit@latest
with:
token: ${{ secrets.GITHUB_TOKEN }}

publish:
environment:
name: pypi
Expand All @@ -33,3 +18,15 @@ jobs:
run: uv build
- name: Upload distribution
run: uv publish --trusted-publishing always
tag:
runs-on: ubuntu-latest
steps:
- name: Tag latest commit
uses: dycw/action-tag@latest
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: push
"on":
push:
branches:
- master
11 changes: 7 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ repos:
id: ruff-check
- id: ruff-format
repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.9
rev: v0.14.10
- hooks:
- args:
- --upgrade
id: uv-lock
repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.9.17
rev: 0.9.18
- hooks:
- args:
- --option
Expand All @@ -27,20 +27,23 @@ repos:
- args:
- --coverage
- --github--push--tag
- --package-name=dycw-template
- --pre-commit--prettier
- --pre-commit--ruff
- --pre-commit--taplo
- --pre-commit--uv
- --pyproject
- --pyproject--project--name=template
- --pyright
- --pyright--include=src
- --pytest
- --pytest--test-paths=src/tests
- --python-package-name=template_python
- --readme
- --repo-name=template-python
- --ruff
id: nitpick
repo: https://github.com/dycw/pre-commit-hook-nitpick
rev: 0.3.2
rev: 0.4.8
- hooks:
- id: format-requirements
- id: replace-sequence-str
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# `dycw-template`
# `template-python`
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
[project]
authors = [{ email = "d.wan@icloud.com", name = "Derek Wan" }]
dependencies = []
name = "template"
name = "dycw-template"
readme = "README.md"
requires-python = ">= 3.14"
version = "0.1.0"

[tool.uv.build-backend]
module-name = "template_python"
module-root = "src"
1 change: 1 addition & 0 deletions pytest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"--cov-report=html",
"--durations=10",
"--durations-min=10",
"--cov=template_python",
]
collect_imported_tests = false
empty_parameter_set_mark = "fail_at_collect"
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/tests/test_main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from template import __version__
from template_python import __version__


class TestMain:
Expand Down
108 changes: 60 additions & 48 deletions uv.lock

Large diffs are not rendered by default.

Loading