forked from alphagov/notifications-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (32 loc) · 981 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
.DEFAULT_GOAL := help
SHELL := /bin/bash
.PHONY: help
help:
@cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: bootstrap
bootstrap: ## Build project
pip install -r requirements_for_test.txt
.PHONY: test
test: ## Run tests
ruff check .
black --check .
pytest -n auto
python setup.py sdist
clean:
rm -rf cache venv
.PHONY: fix-imports
fix-imports:
ruff --fix --select=I ./notifications_utils ./tests
.PHONY: reset-version
reset-version:
git fetch
git checkout origin/main -- notifications_utils/version.py
.PHONY: version-major
version-major: reset-version ## Update the major version number
./scripts/bump_version.py major
.PHONY: version-minor
version-minor: reset-version ## Update the minor version number
./scripts/bump_version.py minor
.PHONY: version-patch
version-patch: reset-version ## Update the patch version number
./scripts/bump_version.py patch