File tree Expand file tree Collapse file tree 3 files changed +7
-11
lines changed
Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ if [[ "$(uname -s)" == "Darwin" ]]; then
1010 source ~ /.venv/bin/activate
1111fi
1212
13- python -m pytest -n16 tests/
13+ make lint tests
Original file line number Diff line number Diff line change 11.PHONY : build run test lint lint-modules clean prune help
22
3- MODULES =routersploit
3+ DIRECTORY =.
4+ EXCLUDED =.git,rsf.py
45RSF_IMAGE =routersploit
5- FLAKE8_IGNORED_RULES =E501,W503
6+ FLAKE8_IGNORED_RULES =E501,F405,F403
67
78build :
89 docker build -t $(RSF_IMAGE ) .
1112 docker run -it --rm $(RSF_IMAGE )
1213
1314lint :
14- flake8 --exclude=__init__.py --ignore=$(FLAKE8_IGNORED_RULES ) $(MODULES )
15+ python3 -m flake8 --exclude=$( EXCLUDED ) --ignore=$(FLAKE8_IGNORED_RULES ) $(DIRECTORY )
1516
1617tests : clean
17- ifeq ($(MODULES ) , routersploit)
18- python -m unittest discover
19- else
20- python -m unittest $(MODULES)
21- endif
18+ python3 -m pytest -n16 tests
2219
2320clean :
2421 find . -name ' *.pyc' -exec rm -f {} +
3431 @echo " Run Routersploit in docker container"
3532 @echo " lint"
3633 @echo " Check style with flake8."
37- @echo " lint-modules"
38- @echo " Check modules style with flake8."
3934 @echo " test"
4035 @echo " Run test suite"
4136 @echo " clean"
Original file line number Diff line number Diff line change @@ -6,4 +6,5 @@ pycrypto==2.6.1
66pytest == 3.5.1
77pytest-forked == 0.2
88pytest-xdist == 1.22.2
9+ flake8 == 3.5.0
910git+git://github.com/threat9/threat9-test-bed
You can’t perform that action at this time.
0 commit comments