-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Expand file tree
/
Copy pathMakefile
More file actions
80 lines (59 loc) · 1.38 KB
/
Makefile
File metadata and controls
80 lines (59 loc) · 1.38 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
PYTHON = python
.PHONY: usage
usage:
@echo 'Usage: make [target]'
.PHONY: po
po:
( cd allauth ; $(PYTHON) ../manage.py makemessages -a -e html,txt,py )
.PHONY: mo
mo:
( cd allauth ; $(PYTHON) ../manage.py compilemessages )
.PHONY: isort
isort:
isort --check-only --diff allauth/ tests/
.PHONY: bandit
bandit:
bandit -q -c pyproject.toml -r allauth/
.PHONY: black
black:
black --check -q .
.PHONY: test
test:
pytest allauth/
.PHONY: djlint
djlint:
djlint --quiet --check allauth examples
.PHONY: flake8
flake8:
flake8 allauth
.PHONY: qa
qa: validate-api-spec mypy djlint bandit black isort flake8
.PHONY: mypy
mypy:
mypy allauth/
.PHONY: validate-api-spec
validate-api-spec:
@if command -v swagger-cli >/dev/null 2>&1; then \
swagger-cli validate allauth/headless/spec/doc/openapi.yaml; \
else \
echo "WARNING: swagger-cli not found in PATH."; \
fi
.PHONY: ci
ci:
woodpecker-cli exec .woodpecker.yaml
.PHONY: standardjs
standardjs:
find ./allauth -name '*.js' | xargs ./node_modules/.bin/standard --ignore allauth/mfa/static/mfa/js/webauthn-json.js
.PHONY: docs
docs:
$(MAKE) -C docs html
.PHONY: ci-install-standardjs
ci-install-standardjs:
npm install standard --no-lockfile --no-progress --non-interactive --silent
.PHONY: clean
clean:
-rm -rf build/ django_allauth.egg-info/
.PHONY: dist
dist: clean mo
python -m build --sdist
python -m build --wheel