mirror of
https://github.com/ep1cman/unifi-protect-backup.git
synced 2025-12-05 23:53:30 +00:00
Initial commit
This commit is contained in:
27
makefile
Normal file
27
makefile
Normal file
@@ -0,0 +1,27 @@
|
||||
sources = unifi_protect_backup
|
||||
|
||||
.PHONY: test format lint unittest coverage pre-commit clean
|
||||
test: format lint unittest
|
||||
|
||||
format:
|
||||
isort $(sources) tests
|
||||
black $(sources) tests
|
||||
|
||||
lint:
|
||||
flake8 $(sources) tests
|
||||
mypy $(sources) tests
|
||||
|
||||
unittest:
|
||||
pytest
|
||||
|
||||
coverage:
|
||||
pytest --cov=$(sources) --cov-branch --cov-report=term-missing tests
|
||||
|
||||
pre-commit:
|
||||
pre-commit run --all-files
|
||||
|
||||
clean:
|
||||
rm -rf .mypy_cache .pytest_cache
|
||||
rm -rf *.egg-info
|
||||
rm -rf .tox dist site
|
||||
rm -rf coverage.xml .coverage
|
||||
Reference in New Issue
Block a user