forked from impredicative/irc-url-title-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (30 loc) · 913 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
34
35
36
37
38
39
.PHONY: help build clean compile fmt install prep setup test
help:
@echo "build : Build Docker image."
@echo "clean : Remove auto-created files and directories."
@echo "compile: Compile required third-party Python packages."
@echo "fmt : Autoformat Python code in-place using various tools in sequence."
@echo "install: Install required third-party Python packages."
@echo "prep : Autoformat and run tests."
@echo "setup : Install requirements and run tests."
@echo "test : Run tests."
build:
#docker build -t "${PWD##*/}" .
docker build -t irc-url-title-bot .
docker images
clean:
rm -rf ./.mypy_cache ./.pytest_cache
compile:
pip-compile -U
fmt:
isort .
black .
autopep8 --in-place --aggressive --recursive .
install:
pip install -U pip wheel
pip install -U -r ./requirements.txt -U -r ./requirements-dev.in
prep: fmt test
setup: install test
test:
black --check .
pytest