jrnl/Makefile
Jonathan Wren 4aabb73847 Implement datetime handling in pytest-bdd
- This was awful and convoluted

Co-authored-by: Micah Jerome Ellison <micah.jerome.ellison@gmail.com>
2021-07-03 15:49:18 -07:00

39 lines
866 B
Makefile

# A Makefile for commands I run frequently:
clean:
rm -rf dist
rm -rf _static
rm -rf jrnl.egg-info
rm -rf _build
rm -rf _sources
rm -rf _static
rm -rf site/
rm -f *.html
html:
poetry run mkdocs serve
format: ## Format files to match style
poetry run black .
lint: ## Check style with various tools
poetry check
poetry run pyflakes jrnl tests
poetry run black --check --diff .
unit: # unit tests
poetry run pytest tests/unit
e2e: # end-to-end tests
poetry run pytest tests/step_defs --gherkin-terminal-reporter --tb=native --diff-type=unified
e2e-debug: # end-to-end tests
poetry run pytest tests/step_defs --gherkin-terminal-reporter --tb=native --diff-type=unified -x -vv
test: lint unit e2e ## Run unit tests and behave tests
build:
poetry build
install: clean ## install the package to the active Python's site-packages
poetry install