Skip to content

Commit 713aa9d

Browse files
authored
build(deps-dev): replaces pre-commit with prek (#374)
* build(deps-dev): replaces pre-commit with prek * docs(contributing): update developper instructions
1 parent 63b1036 commit 713aa9d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ updates:
1717
# Safe updates
1818
- dependency-name: "ruff"
1919
- dependency-name: "ty"
20-
- dependency-name: "pre-commit"
20+
- dependency-name: "prek"
2121
- dependency-name: "pytest"
2222
- dependency-name: "pytest-cov"
2323
- dependency-name: "pytest-pretty"

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ git checkout -b a-short-description
6363
4 - You only have to set your development environment now. First uninstall any existing installation of the library with `pip uninstall torchcam`, then:
6464
```shell
6565
make install-quality
66-
pre-commit install
66+
prek install
6767
```
6868

6969
### Developing your feature

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ lint-format: ${PYPROJECT_FILE} ## Format code and fix linting issues
4040
ruff check --fix . --config ${PYPROJECT_FILE}
4141

4242
precommit: ${PYPROJECT_FILE} .pre-commit-config.yaml ## Run pre-commit hooks
43-
pre-commit run --all-files
43+
prek run --all-files
4444

4545
typing-check: ${PYPROJECT_FILE} ## Check type annotations
4646
uvx ty check .

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ quality = [
5757
"ruff==0.14.2",
5858
"ty==0.0.1a25",
5959
"types-Pillow",
60-
"pre-commit==4.3.0",
60+
"prek==0.2.12",
6161
]
6262
docs = [
6363
# cf. https://github.com/mkdocs/catalog

0 commit comments

Comments
 (0)