-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
41 lines (31 loc) · 867 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
40
41
MAKEFLAGS += --jobs
MAKEFLAGS += --no-builtin-rules
MAKEFLAGS += --warn-undefined-variables
SHELL := bash
.DELETE_ON_ERROR:
.ONESHELL:
.SHELLFLAGS := --norc --noprofile -Eeuo pipefail -O dotglob -O nullglob -O extglob -O failglob -O globstar -c
.DEFAULT_GOAL := help
.PHONY: clean clobber lint test fmt release
clean:
rm -v -rf -- .mypy_cache/ *.egg-info/ build/ dist/
clobber: clean
rm -v -rf -- .venv/
.venv/bin/python3:
python3 -m venv -- .venv
.venv/bin/mypy: .venv/bin/python3
'$<' -m pip install --requirement requirements.dev.txt
lint: .venv/bin/mypy
'$<' -- ./gay
fmt: .venv/bin/mypy
.venv/bin/isort --profile=black --gitignore -- . ./gay
.venv/bin/black -- . ./gay
test:
./docker/ci.sh
release: .venv/bin/mypy
.venv/bin/python3 <<EOF
from setuptools import setup
from sys import argv
argv.extend(("sdist", "bdist_wheel"))
setup()
EOF