Skip to content

Commit

Permalink
chore(ci): support pylint on Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
theY4Kman committed Oct 27, 2018
1 parent 149c0d6 commit 2077631
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,22 @@ ignore-patterns=

# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
init-hook="exec 'aW1wb3J0IHN5cywgb3MKCmlmICdWSVJUVUFMX0VOVicgbm90IGluIG9zLmVudmlyb246CiAgICBz \
eXMuZXhpdCgwKQoKdmVfZGlyID0gb3MuZW52aXJvblsnVklSVFVBTF9FTlYnXQp2ZV9kaXIgaW4g \
c3lzLnBhdGggb3Igc3lzLnBhdGguaW5zZXJ0KDAsIHZlX2RpcikKYWN0aXZhdGVfdGhpcyA9IG9z \
LnBhdGguam9pbihvcy5wYXRoLmpvaW4odmVfZGlyLCAnYmluJyksICdhY3RpdmF0ZV90aGlzLnB5 \
JykKCiMgRml4IGZvciB3aW5kb3dzCmlmIG5vdCBvcy5wYXRoLmV4aXN0cyhhY3RpdmF0ZV90aGlz \
KToKICAgIGFjdGl2YXRlX3RoaXMgPSBvcy5wYXRoLmpvaW4ob3MucGF0aC5qb2luKHZlX2Rpciwg \
J1NjcmlwdHMnKSwgJ2FjdGl2YXRlX3RoaXMucHknKQoKZXhlY2ZpbGUoYWN0aXZhdGVfdGhpcywg \
ZGljdChfX2ZpbGVfXz1hY3RpdmF0ZV90aGlzKSkK'.decode('base64')"
init-hook=
import sys, os

if 'VIRTUAL_ENV' not in os.environ: \
sys.exit(0)

ve_dir = os.environ['VIRTUAL_ENV']
ve_dir in sys.path or sys.path.insert(0, ve_dir)
activate_this = os.path.join(os.path.join(ve_dir, 'bin'), 'activate_this.py')

# Fix for windows
if not os.path.exists(activate_this): \
activate_this = os.path.join(os.path.join(ve_dir, 'Scripts'), 'activate_this.py')

with open(activate_this) as fp: \
exec(fp.read(), dict(__file__=activate_this))

# Use multiple processes to speed up Pylint.
jobs=1
Expand Down

0 comments on commit 2077631

Please sign in to comment.