Skip to content

Commit c3a8a73

Browse files
committed
Replace pre-commit by prep-k
1 parent 1bec9cf commit c3a8a73

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ install: install-poetry install-dependencies ## Install Poetry and dependencies
8383
check-license: ## Check license headers
8484
./dev/check-license
8585

86-
lint: ## Run code linters via pre-commit
87-
$(POETRY) run pre-commit run --all-files
86+
lint: ## Run code linters via prek (pre-commit hooks)
87+
prek run -a
8888

8989
# ===============
9090
# Testing Section

mkdocs/docs/contributing.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,17 @@ pip install "git+https://github.com/apache/iceberg-python.git#egg=pyiceberg[pyar
8080

8181
## Linting
8282

83-
`pre-commit` is used for autoformatting and linting:
83+
`prek` is used for autoformatting and linting:
8484

8585
```bash
8686
make lint
8787
```
8888

89-
Pre-commit will automatically fix the violations such as import orders, formatting etc. Pylint errors you need to fix yourself.
89+
`prek` will automatically fix the violations such as import orders, formatting etc. Pylint errors you need to fix yourself.
9090

91-
In contrast to the name suggest, it doesn't run the checks on the commit. If this is something that you like, you can set this up by running `pre-commit install`.
91+
In contrast to the name suggest, it doesn't run the checks on the commit. If this is something that you like, you can set this up by running `prek install`.
9292

93-
You can bump the integrations to the latest version using `pre-commit autoupdate`. This will check if there is a newer version of `{black,mypy,isort,...}` and update the yaml.
93+
You can bump the integrations to the latest version using `prek auto-update`. This will check if there is a newer version of `{black,mypy,isort,...}` and update the yaml.
9494

9595
## Cleaning
9696

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ datafusion = { version = ">=45", optional = true }
9494
pytest = "7.4.4"
9595
pytest-checkdocs = "2.13.0"
9696
pytest-lazy-fixture = "0.6.3"
97-
pre-commit = "4.3.0"
9897
fastavro = "1.12.0"
9998
coverage = { version = "^7.4.2", extras = ["toml"] }
10099
requests-mock = "1.12.1"

0 commit comments

Comments
 (0)