|
|
@ -51,33 +51,27 @@ 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 superx_budget |
|
|
|
.venv/bin/ruff format src tests noxfile.py |
|
|
|
isort tests |
|
|
|
.venv/bin/ruff check src tests noxfile.py |
|
|
|
black superx_budget tests |
|
|
|
|
|
|
|
flake8 superx_budget 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 fun" |
|
|
|
.venv/bin/pytest tests -x --disable-warnings -m "not fun" |
|
|
|
|
|
|
|
|
|
|
|
testall: lint ## run tests quickly with the default Python
|
|
|
|
testall: lint ## run tests quickly with the default Python
|
|
|
|
pytest tests |
|
|
|
.venv/bin/pytest tests |
|
|
|
|
|
|
|
|
|
|
|
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=superx_budget -m "fun" |
|
|
|
.venv/bin/pytest tests --cov=superx_budget -m "fun" |
|
|
|
coverage html |
|
|
|
.venv/bin/coverage html |
|
|
|
$(BROWSER) htmlcov/index.html |
|
|
|
$(BROWSER) htmlcov/index.html |
|
|
|
|
|
|
|
|
|
|
|
tox: ## run fully isolated tests with tox
|
|
|
|
|
|
|
|
tox |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install: ## install updated project.toml with flint
|
|
|
|
install: ## install updated project.toml with flint
|
|
|
|
flit install --pth-file |
|
|
|
.venv/bin/pip3 install -e ".[dev,test]" |
|
|
|
|
|
|
|
|
|
|
|
devenv: ## setup development environment
|
|
|
|
devenv: ## setup development environment
|
|
|
|
python3 -m venv --prompt superx_budget .venv |
|
|
|
python3 -m venv --prompt superx_budget .venv |
|
|
|
.venv/bin/pip3 install --upgrade pip |
|
|
|
.venv/bin/pip3 install --upgrade pip |
|
|
|
.venv/bin/pip3 install "flit>3.2" |
|
|
|
.venv/bin/pip3 install -e ".[dev,test]" |
|
|
|
.venv/bin/flit install --pth-file |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
repo: devenv ## complete project setup with development environment and git repo
|
|
|
|
repo: devenv ## complete project setup with development environment and git repo
|
|
|
|
git init . |
|
|
|
git init . |
|
|
|