-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 1.04 KB
/
Makefile
File metadata and controls
36 lines (28 loc) · 1.04 KB
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
.PHONY: init format
init:
echo -e "#!/usr/bin/env bash\nmake check" > .git/hooks/pre-commit
chmod 755 .git/hooks/pre-commit
poetry install
format:
poetry run isort --line-length 88 overview
poetry run black overview
check:
# max length is based on Black defaults
poetry run black --check overview
# poetry run isort --line-length 88 --check-only overview
poetry run flake8 --builtins='_' --extend-ignore=E203 --max-line-length 88 overview
poetry run pydocstyle overview
l10n-update:
poetry run pybabel extract overview -o overview/locale/base.pot
poetry run pybabel update -i overview/locale/base.pot -d overview/locale
l10n-compile:
poetry run pybabel compile -d overview/locale
unit-test:
env PYTHONPATH=. poetry run pytest
sphinx-remake:
-rm sphinx/src/overview.*
poetry run sphinx-apidoc --implicit-namespaces -o sphinx/src overview
poetry run sphinx-build -M html "sphinx" "sphinx/build"
sphinx-update:
poetry run sphinx-apidoc --implicit-namespaces -o sphinx/src overview
poetry run sphinx-build -M html "sphinx" "sphinx/build"