-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGNUmakefile
59 lines (44 loc) · 1.64 KB
/
GNUmakefile
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
test:
python quicktest.py webmaster_verification
python quicktest.py webmaster_verification --multicode
install:
python setup.py install
upload:
python setup.py sdist bdist_wheel
twine upload dist/*
clean:
rm -rf dist build *.egg-info django-webmaster-verification-*
rm -rf .coverage coverage
.PHONY: .coverage
.coverage:
coverage run --source=webmaster_verification quicktest.py webmaster_verification
coverage run --source=webmaster_verification quicktest.py webmaster_verification --multicode
coverage: .coverage
coverage html -d coverage
# Pre-commit things
pre-commit: blackcheck flake8 docformatter
style: black flake8 reorder-imports docformatter djcodemod
docformattercheck:
docformatter -r --make-summary-multi-line --pre-summary-newline webmaster_verification/ --check
docformatter:
docformatter -r --make-summary-multi-line --pre-summary-newline webmaster_verification/ -i
.PHONY: flake8
flake8:
flake8
.PHONY: pylint
pylint:
pylint --exit-zero webmaster_verification > reports/pylint.json
pylint-json2html -f jsonextended -o reports/pylint.html < reports/pylint.json
.PHONY: reorder-imports
reorder-imports:
PYTHONPATH="" find webmaster_verification/ -type f -name "*.py" -exec reorder-python-imports --py36-plus --application-directories=.:webmaster_verification {} \;
.PHONY: black blackcheck
black:
black --line-length 89 webmaster_verification/
blackcheck:
black --check --line-length 89 webmaster_verification/
.PHONY: djcodemod
djcodemod:
djcodemod run --removed-in=4.0 webmaster_verification/
requirements.txt: requirements.in
pip-compile --upgrade --no-emit-index-url --no-emit-trusted-host --no-annotate requirements.in