|
|
@ -51,16 +51,16 @@ clean-test: ## remove test and coverage artifacts |
|
|
|
rm -fr htmlcov/ |
|
|
|
rm -fr htmlcov/ |
|
|
|
|
|
|
|
|
|
|
|
lint: ## reformat with black and check style with flake8
|
|
|
|
lint: ## reformat with black and check style with flake8
|
|
|
|
isort sensospot_images |
|
|
|
isort sensospot_grid |
|
|
|
isort tests |
|
|
|
isort tests |
|
|
|
black sensospot_images tests |
|
|
|
black sensospot_grid tests |
|
|
|
flake8 sensospot_images tests |
|
|
|
flake8 sensospot_grid tests |
|
|
|
|
|
|
|
|
|
|
|
test: lint ## run tests quickly with the default Python
|
|
|
|
test: lint ## run tests quickly with the default Python
|
|
|
|
pytest tests -x --disable-warnings -m "not app" |
|
|
|
pytest tests -x --disable-warnings -m "not app" |
|
|
|
|
|
|
|
|
|
|
|
coverage: lint ## full test suite, check code coverage and open coverage report
|
|
|
|
coverage: lint ## full test suite, check code coverage and open coverage report
|
|
|
|
pytest tests --cov=sensospot_images |
|
|
|
pytest tests --cov=sensospot_grid |
|
|
|
coverage html |
|
|
|
coverage html |
|
|
|
$(BROWSER) htmlcov/index.html |
|
|
|
$(BROWSER) htmlcov/index.html |
|
|
|
|
|
|
|
|
|
|
@ -71,7 +71,7 @@ install: ## install updated project.toml with flint |
|
|
|
flit install --pth-file |
|
|
|
flit install --pth-file |
|
|
|
|
|
|
|
|
|
|
|
devenv: ## setup development environment
|
|
|
|
devenv: ## setup development environment
|
|
|
|
python3 -m venv --prompt sensospot_images .venv |
|
|
|
python3 -m venv --prompt sensospot_grid .venv |
|
|
|
.venv/bin/pip3 install --upgrade pip |
|
|
|
.venv/bin/pip3 install --upgrade pip |
|
|
|
.venv/bin/pip3 install flit |
|
|
|
.venv/bin/pip3 install flit |
|
|
|
.venv/bin/flit install --pth-file |
|
|
|
.venv/bin/flit install --pth-file |
|
|
@ -80,7 +80,7 @@ repo: devenv ## complete project setup with development environment and git repo |
|
|
|
git init . |
|
|
|
git init . |
|
|
|
git add . |
|
|
|
git add . |
|
|
|
git commit -m "import of project template" |
|
|
|
git commit -m "import of project template" |
|
|
|
git remote add origin https://git.cpi.imtek.uni-freiburg.de/holgi/sensospot_images.git |
|
|
|
git remote add origin https://git.cpi.imtek.uni-freiburg.de/holgi/sensospot_grid.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 |
|
|
|