-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (36 loc) · 1.13 KB
/
Makefile
File metadata and controls
46 lines (36 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
build:
# The first make statement is what runs when you run `make` in the shell.
# This sets up a shell and makes sure that the project dependencies are installed.
@poetry shell
@poetry install
test-speed:
# Check the speed of the tests and return the slowest tests by the --durations flag
# Run with `make test-speed top=NUMBER_OF_TESTS
@poetry run pytest --durations=${top}
test:
# Run all tests
@poetry run mypy
@poetry run pytest
coverage:
@poetry run pytest --cov=pom_elements tests
.PHONY: docs
docs:
# Create a directory of updated docs
rm docs/pom_elements/*
@pdoc --config show_inherited_members=True --html --output-dir docs pom_elements --force
doc-server:
# Create a live server to test out your documentation changes.
@pdoc --config show_inherited_members=True --http : pom_elements
view-coverage-report:
@poetry run coverage report -m
atest:
@poetry run pytest tests/test_$(t)
verify-commit-hooks:
# Run all pre-commit hooks on all files
@poetry run pre-commit run --all-files
wheel:
# Create a wheel.
python setup.py sdist bdist_wheel
upload-to-pypi:
# Upload an updated version to pypi.
twine upload dist/*