-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
47 lines (39 loc) · 1.95 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
BOOTSTRAP_VERSION=5.3.2
BOOTSTRAP_ICON_VERSION=1.11.1
requirements:
poetry install --sync
style-fix:
poetry run isort .
poetry run black .
poetry run flake8
style-check:
poetry run pylint --load-plugins pylint_django --django-settings-module=website.settings_test --errors-only --recursive=y .
poetry run isort --check-only .
poetry run black --check --diff .
poetry run flake8
tests:
poetry run pytest
poetry run coverage html
poetry run coverage xml
get-static-libs:
mkdir -p avis/static/libs
rm -rf avis/static/libs/bootstrap
mkdir -p avis/static/libs/bootstrap
curl -o avis/static/libs/bootstrap/bootstrap.min.css \
https://cdn.jsdelivr.net/npm/bootstrap@$(BOOTSTRAP_VERSION)/dist/css/bootstrap.min.css
curl -o avis/static/libs/bootstrap/bootstrap.min.css.map \
https://cdn.jsdelivr.net/npm/bootstrap@$(BOOTSTRAP_VERSION)/dist/css/bootstrap.min.css.map
curl -o avis/static/libs/bootstrap/bootstrap.bundle.min.js \
https://cdn.jsdelivr.net/npm/bootstrap@$(BOOTSTRAP_VERSION)/dist/js/bootstrap.bundle.min.js
curl -o avis/static/libs/bootstrap/bootstrap.bundle.min.js.map \
https://cdn.jsdelivr.net/npm/bootstrap@$(BOOTSTRAP_VERSION)/dist/js/bootstrap.bundle.min.js.map
rm -rf avis/static/libs/bootstrap-icons
mkdir -p avis/static/libs/bootstrap-icons
curl -o avis/static/libs/bootstrap-icons/bootstrap-icons.css \
https://cdn.jsdelivr.net/npm/bootstrap-icons@$(BOOTSTRAP_ICON_VERSION)/font/bootstrap-icons.css
curl -Lo avis/static/libs/bootstrap-icons/bootstrap-icons.zip \
https://github.com/twbs/icons/releases/download/v$(BOOTSTRAP_ICON_VERSION)/bootstrap-icons-$(BOOTSTRAP_ICON_VERSION).zip
unzip avis/static/libs/bootstrap-icons/bootstrap-icons.zip -d avis/static/libs/bootstrap-icons
mv avis/static/libs/bootstrap-icons/bootstrap-icons-$(BOOTSTRAP_ICON_VERSION)/fonts avis/static/libs/bootstrap-icons/fonts
rm -r avis/static/libs/bootstrap-icons/bootstrap-icons-$(BOOTSTRAP_ICON_VERSION)
rm avis/static/libs/bootstrap-icons/bootstrap-icons.zip