forked from django-ldapdb/django-ldapdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (36 loc) · 1.08 KB
/
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
45
46
47
48
49
50
51
52
53
PACKAGE := ldapdb
TESTS_DIR := examples
# Error on all warnings, except in python's site.py module and distutils' imp.py module.
PYWARNINGS = -Wdefault -Werror \
-Wignore::DeprecationWarning:site:165 \
-Wignore::PendingDeprecationWarning:imp \
-Wignore::DeprecationWarning:imp \
-Wignore::PendingDeprecationWarning:distutils \
-Wignore::DeprecationWarning:distutils
default:
install:
python setup.py install
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 install clean update release
testall:
tox
test:
python $(PYWARNINGS) manage_dev.py test
.PHONY: test testall
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 check-manifest