mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-09 22:50:54 +00:00
Add pre commit (#103)
* add pre-commit * run pre-commit * skip lint on README.md as it breaks template filling
This commit is contained in:
10
Makefile
10
Makefile
@ -5,8 +5,7 @@ CURRENT_SIGN_SETTING := $(shell git config commit.gpgSign)
|
||||
help:
|
||||
@echo "clean-build - remove build artifacts"
|
||||
@echo "clean-pyc - remove Python file artifacts"
|
||||
@echo "lint - check style with mypy, flake8, isort, pydocstyle, and black"
|
||||
@echo "lint-roll - automatically fix problems with flake8 and black"
|
||||
@echo "lint - fix linting issues with pre-commit
|
||||
@echo "test - run tests quickly with the default Python"
|
||||
@echo "docs - generate docs and open in browser (linux-docs for version on linux)"
|
||||
@echo "notes - consume towncrier newsfragments/ and update release notes in docs/"
|
||||
@ -27,12 +26,7 @@ clean-pyc:
|
||||
find . -name '__pycache__' -exec rm -rf {} +
|
||||
|
||||
lint:
|
||||
tox run -e lint
|
||||
|
||||
lint-roll:
|
||||
isort <MODULE_NAME> tests
|
||||
black <MODULE_NAME> tests setup.py
|
||||
$(MAKE) lint
|
||||
pre-commit run --all-files --show-diff-on-failure
|
||||
|
||||
test:
|
||||
pytest tests
|
||||
|
||||
Reference in New Issue
Block a user