forked from pennersr/django-allauth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (36 loc) · 872 Bytes
/
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
PYTHON = python
.PHONY: usage
usage:
@echo 'Usage: make [target]'
@echo ''
@echo 'Targets:'
@echo ' black Auto format Python code'
@echo ' isort Fix isort issues'
@echo ' po (Re)generate .po files'
@echo ' mo Compile .po into .mo'
@echo ' qa Perform QA checks'
@echo ' test Execute test suite'
.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 .
.PHONY: black
black:
black allauth/ setup.py
.PHONY: test
test:
pytest allauth/
.PHONY: qa
qa: validate-api-spec
flake8 allauth
isort --check-only --diff .
black --check .
djlint --check allauth examples
.PHONY:
validate-api-spec:
swagger-cli validate docs/headless/openapi-specification/openapi.yaml