chore: template usage
Python Lint CI / ruff (push) Successful in 48s
Python Lint CI / ruff-format-check (push) Successful in 48s
Python Lint CI / ty (push) Successful in 48s
Python Test CI / coverage (push) Successful in 1m44s

This commit is contained in:
2026-06-15 10:27:21 +02:00
parent 093c553f6c
commit 11de7386f0
6 changed files with 15 additions and 12 deletions
+10 -7
View File
@@ -1,11 +1,14 @@
[![](https://git.klemek.fr/klemek/python-template/actions/workflows/lint.yml/badge.svg?branch=main&style=flat-square)](https://git.klemek.fr/klemek/python-template/actions?workflow=lint.yml) [![](https://git.klemek.fr/klemek/python-template/actions/workflows/test.yml/badge.svg?branch=main&style=flat-square)](https://git.klemek.fr/klemek/python-template/actions?workflow=test.yml) [![](https://git.klemek.fr/klemek/cool-domain/actions/workflows/lint.yml/badge.svg?branch=main&style=flat-square)](https://git.klemek.fr/klemek/cool-domain/actions?workflow=lint.yml) [![](https://git.klemek.fr/klemek/cool-domain/actions/workflows/test.yml/badge.svg?branch=main&style=flat-square)](https://git.klemek.fr/klemek/cool-domain/actions?workflow=test.yml)
##
# Python Template ```bash
# install with pip
pip install git+https://git.klemek.fr/klemek/cool-domain
## Use this template # run with pipx
pipx run --spec git+https://git.klemek.fr/klemek/cool-domain cool-domain
- [ ] 1. rename foler `sample` to match project # run with uvx
- [ ] 2. rename project in `pyproject.toml` uvx --from git+https://git.klemek.fr/klemek/cool-domain cool-domain
- [ ] 3. update `README.md` ```
- [ ] 4. enjoy
+5 -5
View File
@@ -1,5 +1,5 @@
[project] [project]
name = "sample" # TODO: 2. rename project name = "cool-domain"
version = "0.0.0" version = "0.0.0"
description = "Add your description here" description = "Add your description here"
readme = "README.md" readme = "README.md"
@@ -7,7 +7,7 @@ requires-python = ">=3.14"
dependencies = [] dependencies = []
[project.scripts] [project.scripts]
sample = "sample.__main__:main" # TODO: 2. rename project cool-domain = "cool_domain.__main__:main"
[build-system] [build-system]
requires = ["uv_build>=0.11.7,<0.12"] requires = ["uv_build>=0.11.7,<0.12"]
@@ -15,7 +15,7 @@ build-backend = "uv_build"
[tool.uv.build-backend] [tool.uv.build-backend]
module-root = "" module-root = ""
module-name = "sample" # TODO: 2. rename project module-name = "cool_domain"
[dependency-groups] [dependency-groups]
dev = [ dev = [
@@ -30,5 +30,5 @@ select = ["ALL"]
ignore = ["D", "E501", "ANN401", "BLE001", "COM812", "S101", "PT"] ignore = ["D", "E501", "ANN401", "BLE001", "COM812", "S101", "PT"]
[tool.coverage.run] [tool.coverage.run]
source = ["sample"] # TODO: 2. rename project source = ["cool_domain"]
omit = ["sample/logs.py", "sample/__main__.py"] omit = ["cool_domain/logs.py", "cool_domain/__main__.py"]