forked from salesforce/django-request-queue-timeout
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (42 loc) · 999 Bytes
/
Makefile
File metadata and controls
55 lines (42 loc) · 999 Bytes
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Common variables
PYTHON=python
PACKAGE_DIR = rqto
TEST_DIR = testing
TEST_CMD = ${PYTHON} testing/manage.py test --parallel
TEST_WARNINGS_CMD = ${PYTHON} -Wa manage.py test
# see .coveragerc for settings
COVERAGE_CMD = coverage run testing/manage.py test --noinput && coverage xml && coverage report
STATIC_CMD = ruff check .
VULN_STATIC_CMD = bandit -r -ii -ll -x ${PACKAGE_DIR}/migrations ${PACKAGE_DIR}
FORMAT_CMD = ruff format .
FORMATCHECK_CMD = ${FORMAT_CMD} --check
install:
pip install --upgrade pip .[dev]
.PHONY: install
format:
${FORMAT_CMD}
.PHONY: format
static-fix:
${STATIC_CMD} --fix
.PHONY: static-fix
# Test targets
test-all: coverage static vuln-static formatcheck
.PHONY: test-all
test:
${TEST_CMD}
.PHONY: test
test-warnings:
${TEST_WARNINGS_CMD}
.PHONY: test-warnings
coverage:
${COVERAGE_CMD}
.PHONY: coverage
static:
${STATIC_CMD}
.PHONY: static
vuln-static:
${VULN_STATIC_CMD}
.PHONY: vuln-static
formatcheck:
${FORMATCHECK_CMD}
.PHONY: formatcheck