-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
44 lines (29 loc) · 900 Bytes
/
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
.PHONY : serve update test lint check-style tests fast-tests data-tests docker
serve : docker
docker run --rm -it -p 8000:8000 -v ${PWD}:/awsipranges awsipranges:local
install : pyproject.toml
poetry install
update : poetry-update requirements-dev.txt
poetry-update : pyproject.toml
poetry update
poetry.lock : pyproject.toml
poetry lock
requirements-dev.txt : poetry.lock
poetry export --dev --without-hashes -o requirements-dev.txt
test : lint check-style tests
lint :
flake8
check-style :
black --check .
tests :
pytest --cov=awsipranges
fast-tests :
pytest --cov=awsipranges -m "not data and not extra_data_loading and not slow and not test_utils"
library-tests :
pytest --cov=awsipranges --cov-report=xml -m "not data"
data-tests :
pytest -m "data"
docker : Dockerfile requirements-dev.txt
docker build -t awsipranges:local ./
publish-docs :
mkdocs gh-deploy --force