File tree 4 files changed +22
-6
lines changed 4 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -14,20 +14,19 @@ jobs:
14
14
- name : 🛎️ Check out repository
15
15
uses : actions/checkout@v4
16
16
17
- - name : 📦 Set up UV
17
+ - name : 📦 Set up uv
18
18
uses : astral-sh/setup-uv@v5
19
19
with :
20
- version : " 0.6.5 "
20
+ version : " 0.6.12 " # reminder: keep aligned with the pre-commit hooks
21
21
enable-cache : true
22
22
23
23
- name : 🐍 Set up Python
24
24
uses : actions/setup-python@v5
25
25
with :
26
- python-version : 3.11
27
26
python-version-file : " pyproject.toml"
28
27
29
28
- name : 🔨 Install dependencies
30
- run : uv sync --group test
29
+ run : uv sync --no-default-groups -- group test
31
30
32
31
- name : ✅ Run unit tests
33
32
run : uv run pytest -vvv
Original file line number Diff line number Diff line change 32
32
name : Validate Python
33
33
34
34
- repo : https://github.com/astral-sh/uv-pre-commit
35
- rev : 0.6.12
35
+ rev : 0.6.12 # reminder: keep aligned with the GitHub actions
36
36
hooks :
37
37
- id : uv-lock
38
38
name : Check that the lock file is up-to-date
Original file line number Diff line number Diff line change 1
1
<div align =" center " >
2
2
3
- [ ![ Python] ( https://img.shields.io/badge/Python-3.11+-blue.svg )] ( https://www.python.org/downloads/release/python-3110/ )
3
+ [ ![ Python] ( https://img.shields.io/badge/Python-3.11+-blue.svg )] ( https://www.python.org/downloads/ )
4
4
[ ![ uv] ( https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json )] ( https://github.com/astral-sh/uv )
5
5
[ ![ tests] ( https://github.com/Bilbottom/python-template/actions/workflows/tests.yaml/badge.svg )] ( https://github.com/Bilbottom/python-template/actions/workflows/tests.yaml )
6
6
[ ![ coverage] ( coverage.svg )] ( https://github.com/dbrgn/coverage-badge )
@@ -22,3 +22,12 @@ After copying, find and replace on:
22
22
23
23
- ` python-template ` -> new repo name
24
24
- ` src ` -> new package name (optional)
25
+
26
+ ## Quick start
27
+
28
+ Install [ uv] ( https://docs.astral.sh/uv/getting-started/installation/ ) and then enable [ pre-commit] ( https://pre-commit.com/ ) :
29
+
30
+ ``` bash
31
+ uv sync --all-groups
32
+ pre-commit install --install-hooks
33
+ ```
Original file line number Diff line number Diff line change @@ -22,6 +22,14 @@ test = [
22
22
]
23
23
24
24
25
+ [tool .setuptools ]
26
+ packages = [" src" ]
27
+
28
+ # https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
29
+ # [tool.setuptools.packages.find]
30
+ # include = ["src"]
31
+
32
+
25
33
[tool .pytest .ini_options ]
26
34
addopts = " --cov=src --cov-fail-under=80"
27
35
testpaths = [" tests" ]
You can’t perform that action at this time.
0 commit comments