Skip to content

Commit 41f8dc7

Browse files
committed
pre-commit -> prek
1 parent 5d91fdb commit 41f8dc7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ uvx copier copy --trust gh:branchvincent/python-template .
1515
- Package manager: [uv](https://docs.astral.sh/uv/)
1616
- Formatting: [Ruff](https://docs.astral.sh/ruff/formatter/)
1717
- Testing: [pytest](https://docs.pytest.org/en/latest/)
18-
- Linting: [Ruff](https://docs.astral.sh/ruff/linter/) and [pre-commit](https://pre-commit.com/)
18+
- Linting: [Ruff](https://docs.astral.sh/ruff/linter/) and [prek](https://github.com/j178/prek)
1919
- Typing: [ty](https://docs.astral.sh/ty/)
2020
- Task runner: [taskipy](https://github.com/illBeRoy/taskipy)
2121
- CI/CD: [Github Actions](https://docs.github.com/en/actions)

src/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ uv sync
1313
Optionally, you can also install [pre-commit](https://pre-commit.com/) hooks:
1414

1515
```sh
16-
uv run pre-commit install
16+
uv run prek install
1717
```
1818

1919
Lastly, to see common tasks with [taskipy](https://github.com/illBeRoy/taskipy):

src/pyproject.toml.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ classifiers = ["Private :: Do Not Upload"]
1515
{%- if docs %}
1616
docs = ["mkdocs", "mkdocs-material"]
1717
{%- endif %}
18-
dev = ["pre-commit", "pytest", "ruff", "taskipy", "ty"]
18+
dev = ["prek", "pytest", "ruff", "taskipy", "ty"]
1919

2020
[tool.taskipy.tasks]
2121
clean = { cmd = "rm -rf .*_cache/ dist/", help = "Remove build artifacts" }
2222
{% if docs -%}
2323
docs = { cmd = "mkdocs serve -f docs/mkdocs.yaml", help = "Serve documentation"}
2424
{% endif -%}
25-
lint = { cmd = "pre-commit run --all-files", help = "Run linters and formatters" }
25+
lint = { cmd = "prek run --all-files", help = "Run linters and formatters" }
2626
test = { cmd = "pytest", help = "Run tests" }
2727

2828
[tool.ty]

0 commit comments

Comments
 (0)