forked from pennersr/django-allauth
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
42 lines (34 loc) · 926 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
PYTHON = python
ISORT = isort $$(find $(PWD)/allauth -not -path '*/migrations/*' -type f -name '*.py' -not -name '__init__.py' -print)
.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:
flake8 allauth
isort --check-only --skip-glob '*/migrations/*' --diff allauth
black --check allauth setup.py
djlint --check allauth examples