mirror of
https://github.com/davegallant/rfd.git
synced 2025-08-06 00:33:40 +00:00
add pre-commit and enforce on travis (#37)
* add pre-commit and enforce on travis
This commit is contained in:
29
Makefile
29
Makefile
@@ -1,10 +1,35 @@
|
||||
|
||||
build:
|
||||
SRC:=rfd
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
rm -rf dist/
|
||||
python setup.py sdist
|
||||
|
||||
.PHONY: push_test
|
||||
push_test:
|
||||
twine upload -r testpypi dist/*.tar.gz
|
||||
|
||||
.PHONY: push_prod
|
||||
push_prod:
|
||||
twine upload dist/*.tar.gz
|
||||
twine upload dist/*.tar.gz
|
||||
|
||||
.PHONY: precommit
|
||||
precommit: ## Run pre-commit
|
||||
pre-commit run \
|
||||
--all-files \
|
||||
--show-diff-on-failure
|
||||
|
||||
.PHONY: lint
|
||||
lint:
|
||||
pylint $(SRC)
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
pytest -v
|
||||
|
||||
.PHONY: pr
|
||||
pr: precommit lint test
|
||||
|
||||
.PHONY: ci
|
||||
ci: lint test
|
||||
|
Reference in New Issue
Block a user