Debian Codegraph @

Makefile

raw symbols SCIP
1 PIP=pip
2 FLAKE8=flake8
3 PYTEST=pytest
4 PYCODESTYLE=pycodestyle
5 COVERAGE=coverage
6 COVERAGE_CONFIG=tests/coverage.rc
7 PEP8_CONFIG=tests/pep8.rc
8 MAIN_SOURCE=src/onelogin/saml2
9 DEMOS=demo-django demo-flask demo-tornado demo_pyramid
10 TESTS=tests/src/OneLogin/saml2_tests
11 SOURCES=$(MAIN_SOURCE) $(DEMOS) $(TESTS)
12
13 install-req:
14 $(PIP) install .
15
16 install-test:
17 $(PIP) install -e ".[test]"
18
19 pytest:
20 $(COVERAGE) run --source $(MAIN_SOURCE) --rcfile=$(COVERAGE_CONFIG) -m pytest
21 $(COVERAGE) report -m --rcfile=$(COVERAGE_CONFIG)
22
23 pycodestyle:
24 $(PYCODESTYLE) --ignore=E501,E731,W504 $(SOURCES) --config=$(PEP8_CONFIG)
25
26 flake8:
27 $(FLAKE8) $(SOURCES)
28
29 clean:
30 rm -rf .pytest_cache/
31 rm -rf .eggs/
32 find . -type d -name "__pycache__" -exec rm -r {} +
33 find . -type d -name "*.egg-info" -exec rm -r {} +
34 rm .coverage