File tree 1 file changed +18
-3
lines changed
1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Makefile for AA Intel Tool
2
2
3
+ # Variables
3
4
appname = aa-intel-tool
4
5
appname_verbose = AA Intel Tool
5
6
package = aa_intel_tool
6
7
8
+ # Default goal
9
+ .DEFAULT_GOAL := help
10
+
11
+ # Help
7
12
help :
8
13
@echo " $( appname_verbose) Makefile"
9
14
@echo " "
10
15
@echo " Usage: make [command]"
11
16
@echo " "
12
17
@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"
16
18
@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"
17
22
@echo " tox_tests Run tests with tox"
23
+ @echo " translationfiles Create or update translation files"
18
24
25
+ # Translation files
19
26
translationfiles :
20
27
# cd $(package); \
21
28
django-admin makemessages \
@@ -35,13 +42,15 @@ translationfiles:
35
42
--keep-pot \
36
43
--ignore ' build/*'
37
44
45
+ # Graph models
38
46
graph_models :
39
47
python ../myauth/manage.py \
40
48
graph_models \
41
49
$(package ) \
42
50
--arrow-shape normal \
43
51
-o $(appname ) -models.png
44
52
53
+ # Coverage
45
54
coverage :
46
55
rm -rfv htmlcov; \
47
56
coverage run ../myauth/manage.py \
@@ -52,11 +61,17 @@ coverage:
52
61
coverage html; \
53
62
coverage report -m
54
63
64
+ # Build test
55
65
build_test :
56
66
rm -rfv dist; \
57
67
python3 -m build
58
68
69
+ # Tox tests
59
70
tox_tests :
60
71
export USE_MYSQL=False; \
61
72
tox -v -e allianceauth-latest; \
62
73
rm -rf .tox/
74
+
75
+ # Pre-commit checks
76
+ pre-commit-checks :
77
+ pre-commit run --all-files
You can’t perform that action at this time.
0 commit comments