This commit is contained in:
parent
4e35509619
commit
61efcfa697
2 changed files with 23 additions and 3 deletions
9
Makefile
9
Makefile
|
|
@ -24,18 +24,21 @@ venv: $(VENV)/bin/activate
|
|||
|
||||
|
||||
## Formatting & linting
|
||||
### Format the codebase using black
|
||||
format: venv
|
||||
'$(VENV)'/bin/black setup.py app
|
||||
@ '$(VENV)'/bin/black setup.py app
|
||||
.PHONY: format
|
||||
|
||||
### Lint using black & flake8
|
||||
lint: venv
|
||||
'$(VENV)'/bin/flake8 setup.py app
|
||||
@ '$(VENV)'/bin/flake8 setup.py app
|
||||
@ '$(VENV)'/bin/black --check setup.py app
|
||||
.PHONY: lint
|
||||
|
||||
|
||||
## Testing
|
||||
test: venv
|
||||
'$(VENV)'/bin/pytest --cov=app --cov-fail-under='$(MIN_COV)' tests/
|
||||
@ '$(VENV)'/bin/pytest --cov=app --cov-fail-under='$(MIN_COV)' tests/
|
||||
.PHONY: test
|
||||
|
||||
|
||||
|
|
|
|||
Reference in a new issue