forked from paris-saclay-cds/ramp-board
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (31 loc) · 903 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
PYTHON ?= python
NOSETESTS ?= nosetests
CTAGS ?= ctags
all: clean inplace test
clean-ctags:
rm -f tags
clean: clean-ctags
rm -rf .pytest_cache
find . -type f -name '*.pyc' | xargs rm -f
find . -type d -name '__pycache__' | xargs rm -f
install:
cd databoard && pip install . && cd ..
cd ramp-database && pip install . && cd ..
cd ramp-engine && pip install . && cd ..
test-all:
pytest -vsl
test: test-all
test-db:
pytest -vsl ramp-database/
test-engine:
pytest -vsl ramp-engine/
test-frontend:
pytest -vsl databoard/
trailing-spaces:
find databoard -name "*.py" -exec perl -pi -e 's/[ \t]*$$//' {} \;
ctags:
# make tags for symbol based navigation in emacs and vim
# Install with: sudo apt-get install exuberant-ctags
$(CTAGS) --python-kinds=-i -R databoard
code-analysis:
flake8 databoard --ignore=E501,E211,E265 | grep -v __init__ | grep -v external