|
|
@ -29,7 +29,7 @@ BROWSER := python -c "$$BROWSER_PYSCRIPT" |
|
|
|
help: |
|
|
|
help: |
|
|
|
@python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST) |
|
|
|
@python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST) |
|
|
|
|
|
|
|
|
|
|
|
clean: clean-build clean-pyc clean-test ## remove all build, test, coverage and Python artifacts
|
|
|
|
clean: clean-build clean-docs clean-pyc clean-test ## remove all build, test, coverage and Python artifacts
|
|
|
|
|
|
|
|
|
|
|
|
clean-build: ## remove build artifacts
|
|
|
|
clean-build: ## remove build artifacts
|
|
|
|
rm -fr build/ |
|
|
|
rm -fr build/ |
|
|
@ -38,6 +38,9 @@ clean-build: ## remove build artifacts |
|
|
|
find . -name '*.egg-info' -exec rm -fr {} + |
|
|
|
find . -name '*.egg-info' -exec rm -fr {} + |
|
|
|
find . -name '*.egg' -exec rm -f {} + |
|
|
|
find . -name '*.egg' -exec rm -f {} + |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clean-docs: ## remove documentation artifacts
|
|
|
|
|
|
|
|
rm -fr site/ |
|
|
|
|
|
|
|
|
|
|
|
clean-pyc: ## remove Python file artifacts
|
|
|
|
clean-pyc: ## remove Python file artifacts
|
|
|
|
find . -name '*.pyc' -exec rm -f {} + |
|
|
|
find . -name '*.pyc' -exec rm -f {} + |
|
|
|
find . -name '*.pyo' -exec rm -f {} + |
|
|
|
find . -name '*.pyo' -exec rm -f {} + |
|
|
@ -54,7 +57,7 @@ lint: ## reformat with black and check style with flake8 |
|
|
|
isort src |
|
|
|
isort src |
|
|
|
isort tests |
|
|
|
isort tests |
|
|
|
black src tests |
|
|
|
black src tests |
|
|
|
flake8 src |
|
|
|
flake8 src |
|
|
|
flake8 --ignore S101 tests |
|
|
|
flake8 --ignore S101 tests |
|
|
|
|
|
|
|
|
|
|
|
test: lint ## run tests quickly, stop on first error
|
|
|
|
test: lint ## run tests quickly, stop on first error
|
|
|
@ -79,6 +82,12 @@ coverall: lint ## full test suite, check code coverage and open coverage report |
|
|
|
tox: ## run fully isolated tests with tox
|
|
|
|
tox: ## run fully isolated tests with tox
|
|
|
|
tox |
|
|
|
tox |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
docs: ## build the documentation using mkdocs
|
|
|
|
|
|
|
|
mkdocs build |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
serve-docs: docs ## build the documentation and serve them in a web server
|
|
|
|
|
|
|
|
mkdocs serve |
|
|
|
|
|
|
|
|
|
|
|
install: ## install updated project.toml with flint
|
|
|
|
install: ## install updated project.toml with flint
|
|
|
|
flit install --pth-file |
|
|
|
flit install --pth-file |
|
|
|
|
|
|
|
|
|
|
@ -98,5 +107,5 @@ repo: prepareenv ## complete project setup with development environment and git |
|
|
|
git branch -m main |
|
|
|
git branch -m main |
|
|
|
git remote add origin https://git.cpi.imtek.uni-freiburg.de/holgi/sensospot_tools.git |
|
|
|
git remote add origin https://git.cpi.imtek.uni-freiburg.de/holgi/sensospot_tools.git |
|
|
|
git push -u origin main --no-verify |
|
|
|
git push -u origin main --no-verify |
|
|
|
|
|
|
|
|
|
|
|
.venv/bin/pre-commit install --install-hooks |
|
|
|
.venv/bin/pre-commit install --install-hooks |
|
|
|