Skip to content

Commit 2c20fd4

Browse files
author
Bastien Gautier
committed
Add tool to execute linters
1 parent 96d0624 commit 2c20fd4

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

tools/execute-linters.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
RED="\e[31m"
4+
GREEN="\e[32m"
5+
BLUE="\e[34m"
6+
YELLOW="\e[33m"
7+
ENDCOLOR="\e[0m"
8+
9+
echo -e "\n${YELLOW}> Pylint.${ENDCOLOR}\n"
10+
11+
pylint my_project/
12+
13+
echo -e "\n${YELLOW}> Flake8.${ENDCOLOR}\n"
14+
15+
flake8 my_project/
16+
17+
echo -e "\n${YELLOW}> Mypy.${ENDCOLOR}\n"
18+
19+
mypy my_project/
20+
21+
echo -e "\n${YELLOW}> Pylama.${ENDCOLOR}\n"
22+
23+
pylama my_project/
24+
25+
echo -e "\n${BLUE}All verifications are done.${ENDCOLOR}\n"

0 commit comments

Comments
 (0)