smbmc/Makefile

34 lines
938 B
Makefile
Raw Permalink Normal View History

2020-10-31 16:57:30 +00:00
.DEFAULT: help
.PHONY: help clean clean-pyc clean-build dist lint test tests docs
2021-04-01 02:02:26 +00:00
help: ## Display this help section
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z0-9_-]+:.*?## / {printf "\033[36m%-38s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
clean: clean-pyc clean-build ## Delete all artifacts
clean-pyc: ## Delete python cache artifacts
2020-10-31 16:57:30 +00:00
@find . -name '*.pyc' -delete
@find . -name '*.pyo' -delete
@find . -name __pycache__ -delete
2021-04-01 02:02:26 +00:00
clean-build: ## Delete distribution artifacts
2020-10-31 16:57:30 +00:00
@rm --force --recursive build dist src/*.egg-info docs/_build
2021-04-01 02:02:26 +00:00
dist: clean ## Generate distribution artifacts
2020-10-31 16:57:30 +00:00
poetry build
2021-04-01 02:02:26 +00:00
lint: ## Lint with black, flake8 & reorder-python-imports
2020-10-31 16:57:30 +00:00
nox -rs precommit
2021-04-01 02:02:26 +00:00
test: ## Run tests with latest Python version
2020-10-31 16:57:30 +00:00
nox
2021-04-01 02:02:26 +00:00
coverage: ## Run coverage tests with latest Python version
2020-10-31 16:57:30 +00:00
nox -rs coverage
2021-04-01 02:02:26 +00:00
tests: ## Run tests with all supported Python versions
2020-10-31 16:57:30 +00:00
nox -rs tests
2021-04-01 02:02:26 +00:00
docs: ## Run documentation generation
nox -rs docs