-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
34 lines (28 loc) · 892 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
.PHONY: bandit
bandit:
poetry run bandit -c pyproject.toml --recursive .
.PHONY: black
black:
poetry run black . --config=./pyproject.toml
.PHONY: build
build: test bandit
poetry build
.PHONY: init
init:
pip install --index-url https://artefacts.tax.service.gov.uk/artifactory/api/pypi/pips/simple/ poetry
poetry install
# poetry run pre-commit install
# Increment the version found in pyproject.toml for a new release
.PHONY: publish
publish: build
poetry config repositories.artifactory "https://artefacts.tax.service.gov.uk/artifactory/api/pypi/pips/"
@poetry config http-basic.artifactory ${ARTIFACTORY_USERNAME} ${ARTIFACTORY_PASSWORD}
@poetry publish --repository artifactory
poetry config http-basic.artifactory --unset
poetry config repositories.artifactory --unset
.PHONY: test
test: init black
poetry run pytest tests/
.PHONY: update
update: init
poetry update