Skip to content

Commit 3596881

Browse files
Pre commit makefile targets (#767)
* do not track lockfile * add targets --------- Co-authored-by: Richard Iannone <riannone@me.com>
1 parent 9874b7c commit 3596881

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,6 @@ latex_testing.qmd
118118
latex_testing.pdf
119119
latex_examples.qmd
120120
latex_examples.pdf
121+
122+
# Do not track lockfile in package/lib setting
123+
uv.lock

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ check:
1717

1818
clean: clean-build clean-pyc clean-test ## remove all build, test, coverage and Python artifacts
1919

20+
.PHONY: install-pre-commit
21+
install-pre-commit: # Install pre-commit hooks
22+
@uvx pre-commit install
23+
24+
.PHONY: run-pre-commit
25+
run-pre-commit: # Run pre-commit hooks
26+
@uvx pre-commit run --all-files
27+
2028
clean-build: ## remove build artifacts
2129
rm -fr build/
2230
rm -fr dist/

0 commit comments

Comments
 (0)