Skip to content

Commit 487badc

Browse files
committed
[MISC] Makefile updated
1 parent 2b64dec commit 487badc

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

Makefile

+18-3
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
11
# Makefile for AA Intel Tool
22

3+
# Variables
34
appname = aa-intel-tool
45
appname_verbose = AA Intel Tool
56
package = aa_intel_tool
67

8+
# Default goal
9+
.DEFAULT_GOAL := help
10+
11+
# Help
712
help:
813
@echo "$(appname_verbose) Makefile"
914
@echo ""
1015
@echo "Usage: make [command]"
1116
@echo ""
1217
@echo "Commands:"
13-
@echo " translationfiles Create or update translation files"
14-
@echo " graph_models Create a graph of the models"
15-
@echo " coverage Run tests and create a coverage report"
1618
@echo " build_test Build the package"
19+
@echo " coverage Run tests and create a coverage report"
20+
@echo " graph_models Create a graph of the models"
21+
@echo " pre-commit-checks Run pre-commit checks"
1722
@echo " tox_tests Run tests with tox"
23+
@echo " translationfiles Create or update translation files"
1824

25+
# Translation files
1926
translationfiles:
2027
#cd $(package); \
2128
django-admin makemessages \
@@ -35,13 +42,15 @@ translationfiles:
3542
--keep-pot \
3643
--ignore 'build/*'
3744

45+
# Graph models
3846
graph_models:
3947
python ../myauth/manage.py \
4048
graph_models \
4149
$(package) \
4250
--arrow-shape normal \
4351
-o $(appname)-models.png
4452

53+
# Coverage
4554
coverage:
4655
rm -rfv htmlcov; \
4756
coverage run ../myauth/manage.py \
@@ -52,11 +61,17 @@ coverage:
5261
coverage html; \
5362
coverage report -m
5463

64+
# Build test
5565
build_test:
5666
rm -rfv dist; \
5767
python3 -m build
5868

69+
# Tox tests
5970
tox_tests:
6071
export USE_MYSQL=False; \
6172
tox -v -e allianceauth-latest; \
6273
rm -rf .tox/
74+
75+
# Pre-commit checks
76+
pre-commit-checks:
77+
pre-commit run --all-files

0 commit comments

Comments
 (0)