reduce loop counters to more practical levels
[oweals/gnunet.git] / contrib / scripts / lint-python.sh
1 #!/bin/sh
2 # check python style (and 2 to 3 migration)
3
4 rm python-lint.log
5
6 if [ -e "python" ]
7 then
8     python --version >> python-lint.log
9 fi
10
11 if [ -e "python2" ]
12 then
13     python2 --version >> python-lint.log
14 fi
15
16 if [ -e "python3" ]
17 then
18     python3 --version >> python-lint.log
19 fi
20
21 flake8 >> python-lint.log
22
23 2to3 -v -d . >> python-lint.log
24 2to3 -v -p . >> python-lint.log