-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
44 lines (30 loc) · 900 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
42
43
44
PACKAGE=volatildap
TESTS_DIR=tests
FLAKE8 = flake8
default:
clean:
find . -type f -name '*.pyc' -delete
find . -type f -path '*/__pycache__/*' -delete
find . -type d -empty -delete
upgrade:
pip install --upgrade pip setuptools
pip install --upgrade -r requirements_dev.txt
pip freeze
release:
fullrelease
.PHONY: default clean upgrade release
testall:
tox
test:
python -Wdefault -m unittest discover $(TESTS_DIR)
.PHONY: test testall
# Note: we run the linter in two runs, because our __init__.py files has specific warnings we want to exclude
lint: flake8 isort check-manifest
flake8:
$(FLAKE8) --exclude $(PACKAGE)/__init__.py $(PACKAGE) $(TESTS_DIR)
$(FLAKE8) --ignore F401 $(PACKAGE)/__init__.py
isort:
isort $(PACKAGE) $(TESTS_DIR) --check-only --diff --project $(PACKAGE) --project $(TESTS_DIR)
check-manifest:
check-manifest
.PHONY: lint flake8 isort check-manifest