-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (30 loc) · 911 Bytes
/
Makefile
File metadata and controls
40 lines (30 loc) · 911 Bytes
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
export PROJECT := tuxlava
export TUXPKG_MIN_COVERAGE := 95
export TUXPKG_FLAKE8_OPTIONS := "--exclude=site-packages"
check: spellcheck stylecheck test
include $(shell tuxpkg get-makefile)
.PHONY: tags
help:
@echo 'Possible targets:'
@echo ''
@echo ' doc - Build documentation'
@echo ' stylecheck - Check code style'
@echo ' spellcheck - Check code spelling'
@echo ' tags - Generate an index file of the surce and test code (ctags)'
@echo ' test - Run unit tests'
stylecheck: style flake8
spellcheck:
codespell \
-I codespell-ignore-list \
--check-filenames \
--skip '.git,public,dist,*.sw*,*.pyc,tags,*.json,.coverage,htmlcov,*.jinja2,*.yaml'
doc: docs/index.md
mkdocs build
docs/index.md: README.md scripts/readme2index.sh
scripts/readme2index.sh $@
doc-serve:
mkdocs serve
lava-validate:
python3 test/validate.py
tags:
ctags -R $(PROJECT)/ test/