mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-29 15:43:54 +00:00
test(vcs): Add a VCS commit hook to run linters
This commit is contained in:
parent
b306475370
commit
5da9b8c398
@ -1,8 +1,15 @@
|
||||
repos:
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: codechecks
|
||||
name: codechecks
|
||||
stages: ["commit"]
|
||||
entry: "tox -e codechecks"
|
||||
language: system
|
||||
pass_filenames: false
|
||||
- id: test
|
||||
name: test
|
||||
stages: ["push"]
|
||||
entry: "make test"
|
||||
language: system
|
||||
pass_filenames: false
|
||||
|
4
Makefile
4
Makefile
@ -31,9 +31,7 @@ default:
|
||||
|
||||
.PHONY: build
|
||||
## Set up and build for local development
|
||||
# To also run checks on every commit:
|
||||
# $ make .git/hooks/pre-commit
|
||||
build: .tox .git/hooks/pre-push
|
||||
build: .tox .git/hooks/pre-commit .git/hooks/pre-push
|
||||
|
||||
.PHONY: test
|
||||
## Run all tests and code reports
|
||||
|
Loading…
x
Reference in New Issue
Block a user