-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (37 loc) · 1.03 KB
/
Makefile
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
L="."
M=""
# Run the tests and linters
test:
poetry run pytest \
-rP \
--black \
--flake8 \
--pylint \
--cov=sqlean --cov-fail-under=95 --cov-report html \
--mypy
# Create snapshots for testing
snapshot:
poetry run pytest \
-rP \
--generate-snapshots \
--location ${L} \
--match ${M}
##############################################################################
# The commands below are just for people who are not familiar with poetry. If
# you are familiar with poetry, go ahead and use the poetry commands
##############################################################################
# Installs all dependencies, including dev dependencies.
# Equivalent to: `pip install -e .`
install:
poetry install
# Install only the non-dev dependencies.
install-prod:
poetry install --no-dev
# Update the poetry.lock with the latest dependencies that fall within the
# constraints of pyproject.toml
update:
poetry update
# source the virtual environment that has been setup for this project
# to exit: `exit`
venv:
poetry shell