File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ NONE_OUT="\033[0m"
9
9
10
10
# specifies a set of variables to declare files to be used for code assessment
11
11
PROJECT_FILES=" ./"
12
- TESTS_FILES=" tests"
13
12
14
13
15
14
function store-failures {
@@ -45,16 +44,22 @@ function run-unittests {
45
44
}
46
45
47
46
48
- function run-black-analysis() {
47
+ function run-black-analysis {
49
48
echo " Running black analysis ..." && ( black --check " ${PROJECT_FILES} " )
50
49
}
51
50
52
51
52
+ function run-flake8-analysis {
53
+ echo " Running flake8 analysis ..." && ( flake8 " ${PROJECT_FILES} " )
54
+ }
55
+
56
+
53
57
function run-code-analysis {
54
58
echo " Running code analysis ..."
55
59
remove-pycache-trash
56
60
run-unittests || store-failures " Unittests are failed!"
57
61
run-black-analysis || store-failures " black analysis is failed!"
62
+ run-flake8-analysis || store-failures " flake8 analysis is failed!"
58
63
59
64
if [[ ${# RESULT[@]} -ne 0 ]];
60
65
then echo -e " ${FAILED_OUT} Some errors occurred while analysing the code quality.${NONE_OUT} "
You can’t perform that action at this time.
0 commit comments