-
Notifications
You must be signed in to change notification settings - Fork 26
/
Makefile
30 lines (24 loc) · 608 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
# Copyright (C) 2019 Richard Hughes <[email protected]>
# SPDX-License-Identifier: GPL-3.0+
VENV=./env
PYTHON=$(VENV)/bin/python
PYTEST=$(VENV)/bin/pytest
BLACK=$(VENV)/bin/black
FLAKE8=$(VENV)/bin/flake8
MYPY=$(VENV)/bin/mypy
STUBGEN=$(VENV)/bin/stubgen
setup: requirements.txt
$(VENV)/bin/pip install -r requirements.txt
clean:
rm -rf ./build
rm -rf ./htmlcov
rm -rf ./dist
blacken:
find fwhunt_scan -name '*.py' -exec $(BLACK) {} \;
check: $(PYTEST)
$(PYTEST)
$(MYPY) fwhunt_scan
$(FLAKE8)
pkg: $(STUBGEN)
$(STUBGEN) --output . --package fwhunt_scan
$(PYTHON) setup.py sdist bdist_wheel