-
Notifications
You must be signed in to change notification settings - Fork 249
Expand file tree
/
Copy pathlinter.sh
More file actions
executable file
·26 lines (23 loc) · 810 Bytes
/
linter.sh
File metadata and controls
executable file
·26 lines (23 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
disable_options="R0201,R0902,R0903,R0904,R0912,R0913,R0914,R0915,C0103,C0200,C0302,C1801,W0612"
python_files=("mlrose/algorithms.py"
"tests/test_algorithms.py"
"mlrose/decay.py"
"tests/test_decay.py"
"mlrose/fitness.py"
"tests/test_fitness.py"
"mlrose/activation.py"
"tests/test_activation.py"
"mlrose/neural.py"
"tests/test_neural.py"
"mlrose/opt_probs.py"
"tests/test_opt_probs.py"
"setup.py")
for filename in "${python_files[@]}"
do
echo "Starting lint on ${filename}"
pylint ${filename} --score=no --disable=$disable_options
pycodestyle ${filename}
flake8 ${filename}
done
echo "Finished linting all files"