-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
40 lines (27 loc) · 791 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
PACKAGE := extypes
TESTS_DIR := tests
PYTHON ?= python
TEST_MODULES = $(shell find $(TESTS_DIR) -name 'test_*.py' | sed 's|.py$$||; s|/|.|g')
default:
clean:
find . -type f -name '*.pyc' -delete
find . -type f -path '*/__pycache__/*' -delete
find . -type d -empty -delete
update:
pip install --upgrade pip setuptools
pip install -r requirements_dev.txt
pip freeze
release:
fullrelease
.PHONY: default clean update release
test:
PYTHONPATH=. $(PYTHON) -m unittest $(TEST_MODULES)
.PHONY: test
lint: flake8 isort check-manifest
flake8:
flake8 --config .flake8 $(PACKAGE) $(TESTS_DIR)
isort:
isort $(PACKAGE) $(TESTS_DIR) --recursive --check-only --diff --project $(PACKAGE) --project $(TESTS_DIR)
check-manifest:
check-manifest
.PHONY: isort lint flake8 checl-manifest