-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
Makefile
110 lines (82 loc) · 1.99 KB
/
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
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
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 .
.PHONY: bandit
bandit:
bandit -c pyproject.toml -r allauth/
.PHONY: black
black:
black --check .
.PHONY: test
test:
pytest allauth/
.PHONY: djlint
djlint:
djlint --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:
swagger-cli validate docs/headless/openapi-specification/openapi.yaml
.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-bandit
ci-install-bandit:
pip install bandit==1.7.10
.PHONY: ci-install-black
ci-install-black:
pip install black==24.4.0
.PHONY: ci-install-mo
ci-install-mo:
apt-get update
apt-get install -y --no-install-recommends gettext
pip install .[mfa,socialaccount,openid,saml]
.PHONY: ci-install-standardjs
ci-install-standardjs:
npm install standard --no-lockfile --no-progress --non-interactive --silent
.PHONY: ci-install-djlint
ci-install-djlint:
pip install djlint==1.34.1
.PHONY: ci-install-docs
ci-install-docs:
pip install Django Sphinx sphinx_rtd_theme
.PHONY: ci-install-flake8
ci-install-flake8:
pip install flake8==7.1.1
.PHONY: ci-install-isort
ci-install-isort:
pip install isort==5.13.2
.PHONY: ci-install-mypy
ci-install-mypy:
pip install .[mfa,socialaccount,openid,saml]
pip install \
'django-stubs==5.0.2' \
'mypy==1.10.0' \
'pytest>=7.4' \
'pytest-asyncio == 0.23.8' \
'pytest-django>=4.5.2' \
'types-requests==2.32.0.20240602' \
'python3-saml>=1.15.0,<2.0.0'