Added black formatter to pre-commit hook
This commit is contained in:
parent
6f2d9d1dde
commit
7a7bd6fed4
14 changed files with 127 additions and 70 deletions
5
Makefile
5
Makefile
|
|
@ -69,6 +69,11 @@ test: pytest.ini build-venv
|
|||
lint: build-venv
|
||||
@ "$(VENV)/bin/flake8" "$(SRC)"/**/*.py
|
||||
|
||||
# =====FORMATTING=====
|
||||
# Run black
|
||||
format: build-venv
|
||||
@ "$(VENV)/bin/black" '$(SRC)'
|
||||
|
||||
|
||||
# =====PACKAGING=====
|
||||
package: README.md LICENSE setup.py test clean-setup
|
||||
|
|
|
|||
Reference in a new issue