-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (27 loc) · 799 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
# Minimal Makefile for automating recurring tasks during development
#
# Copyright (c) 2023, Till Biskup
# 2023-12-06
.PHONY: docs tests help
.DEFAULT_GOAL := help
help:
@echo "This makefile automates different recurring tasks"
@echo ""
@echo "The following targets are available:"
@echo ""
@echo "docs - create documentation using Sphinx"
@echo "tests - run unittests"
@echo "check - check code using prospector"
@echo "black - format code using Black"
docs:
@echo "Create documentation using Sphinx"
$(MAKE) -C docs html
tests:
@echo "Run unittests"
cd tests/ && python -m unittest discover -s . -t .
check:
@echo "Check code using prospector... this may take a while"
prospector
black:
@echo "Automatically format code using Black"
black -l 78 . --extend-exclude templates