Skip to content

Commit fb935b8

Browse files
authored
Remove Python 2 specific prospector.yaml file (#466)
It was added in #408 but is no longer needed. The same configuration file can be used to lint both Python 2 and Python 3.
1 parent 08b91ec commit fb935b8

File tree

3 files changed

+3
-47
lines changed

3 files changed

+3
-47
lines changed

lint.sh

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,7 @@
22

33
set -ex
44

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
5+
cd "$(dirname $0)"
166

7+
prospector --profile ./prospector.yaml -t dodgy -t mccabe -t profile-validator -t pyflakes -t pylint
178
rstcheck README.rst

prospector-2.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ deps =
77
py36: -rdev-requirements-py3.txt
88
commands =
99
pytest tests --cov=./
10-
py36: ./lint.sh
11-
py27: ./lint.sh 2
10+
./lint.sh

0 commit comments

Comments
 (0)