-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlint.sh
More file actions
executable file
·20 lines (18 loc) · 1.16 KB
/
lint.sh
File metadata and controls
executable file
·20 lines (18 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
mkdir lint
# pycodestyle (pep8 check): no line length check
echo pycodestyle
pycodestyle solar_system_simulator/__init__.py > lint/init.txt
pycodestyle solar_system_simulator/calculation.py > lint/calculation.txt
pycodestyle solar_system_simulator/opengl.py > lint/opengl.txt
pycodestyle solar_system_simulator/operators.py > lint/operators.txt
pycodestyle solar_system_simulator/panels.py > lint/panels.txt
pycodestyle solar_system_simulator/properties.py > lint/properties.txt
# pylint: disable "Invalid Name", "Missing Docstring", "Line to long" and "Class has no __init__ method"
echo pylint
pylint --disable=C0103,C0111,C0301,W0232 solar_system_simulator/__init__.py >> lint/init.txt
pylint --disable=C0103,C0111,C0301,W0232 solar_system_simulator/calculation.py >> lint/calculation.txt
pylint --disable=C0103,C0111,C0301,W0232 solar_system_simulator/opengl.py >> lint/opengl.txt
pylint --disable=C0103,C0111,C0301,W0232 solar_system_simulator/operators.py >> lint/operators.txt
pylint --disable=C0103,C0111,C0301,W0232 solar_system_simulator/panels.py >> lint/panels.txt
pylint --disable=C0103,C0111,C0301,W0232 solar_system_simulator/properties.py >> lint/properties.txt