Skip to content

Commit 6de1e81

Browse files
committed
rename reformat target to format
this makes it more consistant with uv and other build tools
1 parent d0cc120 commit 6de1e81

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/tests.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
3636
cd /tmp/python-project
3737
git init . && git add . && git commit -m "Initial commit"
38-
make reformat
38+
make format
3939
40-
git diff --exit-code || { >&2 echo "please reformat"; exit 1; }
40+
git diff --exit-code || { >&2 echo "please format"; exit 1; }
4141
4242
make lint
4343
make test
@@ -53,9 +53,9 @@ jobs:
5353
5454
cd /tmp/python-project
5555
git init . && git add . && git commit -m "Initial commit"
56-
make reformat
56+
make format
5757
58-
git diff --exit-code || { >&2 echo "please reformat"; exit 1; }
58+
git diff --exit-code || { >&2 echo "please format"; exit 1; }
5959
6060
make lint
6161
make test
@@ -71,9 +71,9 @@ jobs:
7171
7272
cd /tmp/tob-r-and-e-python-project
7373
git init . && git add . && git commit -m "Initial commit"
74-
make reformat
74+
make format
7575
76-
git diff --exit-code || { >&2 echo "please reformat"; exit 1; }
76+
git diff --exit-code || { >&2 echo "please format"; exit 1; }
7777
7878
make lint
7979
make test
@@ -89,9 +89,9 @@ jobs:
8989
9090
cd /tmp/bit-trails
9191
git init . && git add . && git commit -m "Initial commit"
92-
make reformat
92+
make format
9393
94-
git diff --exit-code || { >&2 echo "please reformat"; exit 1; }
94+
git diff --exit-code || { >&2 echo "please format"; exit 1; }
9595
9696
make lint
9797
make test
@@ -108,9 +108,9 @@ jobs:
108108
109109
cd /tmp/python-project
110110
git init . && git add . && git commit -m "Initial commit"
111-
make reformat
111+
make format
112112
113-
git diff --exit-code || { >&2 echo "please reformat"; exit 1; }
113+
git diff --exit-code || { >&2 echo "please format"; exit 1; }
114114
115115
make lint
116116
make test

{{cookiecutter.project_slug}}/.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: astral-sh/setup-uv@445689ea25e0de0a23313031f5fe577c74ae45a1 # v6.3.0
2121

2222
- name: Build distributions
23-
run: uv build
23+
run: make build
2424

2525
- name: Upload distributions
2626
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2

{{cookiecutter.project_slug}}/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ lint:
3737
uv run interrogate -c pyproject.toml .
3838
{%- endif %}
3939

40-
.PHONY: reformat
41-
reformat:
40+
.PHONY: format
41+
format:
4242
uv run ruff format && \
4343
uv run ruff check --fix
4444

0 commit comments

Comments
 (0)