diff --git a/.travis.yml b/.travis.yml index 3e4d3104a..9906b2c34 100644 --- a/.travis.yml +++ b/.travis.yml @@ -60,12 +60,12 @@ before_script: script: # Check Python code -- flake8 ./monkey --config ./ci_scripts/flake8_syntax_check.config +- flake8 ./monkey --config=./ci_scripts/flake8_syntax_check.ini ## Warn about linter issues. ### --exit-zero forces Flake8 to use the exit status code 0 even if there are errors, which means this will NOT fail the build. ### The output is redirected to a file. -- flake8 ./monkey --exit-zero --config ./ci_scripts/flake8_linter_check.config > ./ci_scripts/flake8_warnings.txt +- flake8 ./monkey --exit-zero --config=./ci_scripts/flake8_linter_check.ini > ./ci_scripts/flake8_warnings.txt ## Display the linter issues - cat ./ci_scripts/flake8_warnings.txt ## Make sure that we haven't increased the amount of warnings. diff --git a/ci_scripts/flake8_linter_check.cfg b/ci_scripts/flake8_linter_check.ini similarity index 100% rename from ci_scripts/flake8_linter_check.cfg rename to ci_scripts/flake8_linter_check.ini diff --git a/ci_scripts/flake8_syntax_check.cfg b/ci_scripts/flake8_syntax_check.cfg deleted file mode 100644 index 7171e3db6..000000000 --- a/ci_scripts/flake8_syntax_check.cfg +++ /dev/null @@ -1,9 +0,0 @@ -[flake8] - -## Check syntax errors and fail the build if any are found. -exclude = ../monkey/monkey_island/cc/ui, - ../monkey/common/cloud -select = E901,E999,F821,F822,F823 -count = True -show-source = True -statistics = True diff --git a/ci_scripts/flake8_syntax_check.ini b/ci_scripts/flake8_syntax_check.ini new file mode 100644 index 000000000..969379326 --- /dev/null +++ b/ci_scripts/flake8_syntax_check.ini @@ -0,0 +1,15 @@ +[flake8] + +## Check syntax errors and fail the build if any are found. +exclude = + ../monkey/monkey_island/cc/ui, + ../monkey/common/cloud +select = + E901, + E999, + F821, + F822, + F823 +count = True +show-source = True +statistics = True