-
Notifications
You must be signed in to change notification settings - Fork 63
/
Makefile
32 lines (30 loc) · 797 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
.PHONY: format
format:
autoflake --recursive --in-place --remove-all-unused-imports .
isort .
black .
flake8
.PHONY: lint
lint:
isort --check .
black --check .
flake8
.PHONY: publish
publish:
@echo "Remember to update the Changelog's version and date in README.rst and stage the changes"
@echo ""
@read -p "Press Enter to continue...";
@echo ""
@echo "Afterwards, run the following commands:"
@echo "poetry run bumpversion --allow-dirty major/minor"
@echo "poetry build"
@echo "poetry publish"
@echo ""
@read -p "Press Enter to continue...";
@echo ""
@echo "Remove branch protection for Administrators."
@echo "You probably want to update the repo now:"
@echo "git push origin main"
@echo "git push --tags"
@echo ""
@echo "Remember to enable back the branch protection."