Skip to content

Commit

Permalink
Remove Python 2 specific prospector.yaml file (#466)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pietern authored Jun 9, 2022
1 parent 08b91ec commit fb935b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 47 deletions.
13 changes: 2 additions & 11 deletions lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,7 @@

set -ex

PY_VERSION=${1:-3}

FWDIR="$(cd "`dirname $0`"; pwd)"
cd "$FWDIR"

tools="-t dodgy -t mccabe -t profile-validator -t pyflakes -t pylint"
if [[ "$PY_VERSION" -eq 3 ]]; then
prospector --profile "$FWDIR/prospector.yaml" $tools
else
prospector --profile "$FWDIR/prospector-2.yaml" $tools
fi
cd "$(dirname $0)"

prospector --profile ./prospector.yaml -t dodgy -t mccabe -t profile-validator -t pyflakes -t pylint
rstcheck README.rst
34 changes: 0 additions & 34 deletions prospector-2.yaml

This file was deleted.

3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ deps =
py36: -rdev-requirements-py3.txt
commands =
pytest tests --cov=./
py36: ./lint.sh
py27: ./lint.sh 2
./lint.sh

0 comments on commit fb935b8

Please sign in to comment.