Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
routersploit
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
czos-dpend
routersploit
Commits
34297343
Commit
34297343
authored
Jul 17, 2016
by
fwkz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding flake8 instead seperate pyflakes+pycodestyle
parent
2b8d98ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
18 deletions
+8
-18
.travis.yml
.travis.yml
+2
-3
run_linter.sh
run_linter.sh
+6
-15
No files found.
.travis.yml
View file @
34297343
...
...
@@ -4,8 +4,8 @@ python:
install
:
-
"
pip
install
-r
requirements.txt"
-
"
pip
install
pexpect
pep8
pyflakes
"
-
"
pip
install
pexpect
flake8
"
script
:
-
"
python
-m
unittest
discover"
-
"
./run_linter.sh"
\ No newline at end of file
-
"
./run_linter.sh"
run_linter.sh
View file @
34297343
...
...
@@ -7,25 +7,16 @@ NC='\033[0m' # No Color
MODULES_PATH
=
./routersploit/modules
FAILURE
=
0
PEP
=
$(
pep8
--ignore
E501,W503
$MODULES_PATH
)
PYFLAKES
=
$(
pyflakes
$MODULES_PATH
)
FLAKE8_IGNORED_RULES
=
'E501,W503'
FLAKE8
=
$(
flake8
--ignore
=
$FLAKE8_IGNORED_RULES
$MODULES_PATH
)
if
[
"
$
PEP
"
]
;
then
echo
-e
"
${
RED
}
- PEP
8 violations:
${
NC
}
"
echo
-e
$
PEP
if
[
"
$
FLAKE8
"
]
;
then
echo
-e
"
\n
${
RED
}
- flake
8 violations:
${
NC
}
"
echo
-e
$
FLAKE8
echo
""
FAILURE
=
1
else
echo
-e
"
${
GREEN
}
+ PEP8
${
NC
}
"
fi
if
[
"
$PYFLAKES
"
]
;
then
echo
-e
"
\n
${
RED
}
- pyflakes violations:
${
NC
}
"
echo
-e
$PYFLAKES
echo
"
\n
"
FAILURE
=
1
else
echo
-e
"
${
GREEN
}
+
pyflakes
${
NC
}
"
echo
-e
"
${
GREEN
}
+
flake8
${
NC
}
"
fi
exit
$FAILURE
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment