We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08b91ec commit fb935b8Copy full SHA for fb935b8
lint.sh
@@ -2,16 +2,7 @@
2
3
set -ex
4
5
-PY_VERSION=${1:-3}
6
-
7
-FWDIR="$(cd "`dirname $0`"; pwd)"
8
-cd "$FWDIR"
9
10
-tools="-t dodgy -t mccabe -t profile-validator -t pyflakes -t pylint"
11
-if [[ "$PY_VERSION" -eq 3 ]]; then
12
- prospector --profile "$FWDIR/prospector.yaml" $tools
13
-else
14
- prospector --profile "$FWDIR/prospector-2.yaml" $tools
15
-fi
+cd "$(dirname $0)"
16
+prospector --profile ./prospector.yaml -t dodgy -t mccabe -t profile-validator -t pyflakes -t pylint
17
rstcheck README.rst
prospector-2.yaml
tox.ini
@@ -7,5 +7,4 @@ deps =
py36: -rdev-requirements-py3.txt
commands =
pytest tests --cov=./
- py36: ./lint.sh
- py27: ./lint.sh 2
+ ./lint.sh
0 commit comments