Skip to content

Commit

Permalink
implement pylint checking
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Sep 5, 2017
1 parent 057704b commit 159def7
Show file tree
Hide file tree
Showing 4 changed files with 412 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
- docker

install:
- pip install flake8
- pip install flake8 pylint

script:
- make test
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ TEST_TARGETS=centos\:5 centos\:6 centos\:7

test: $(addprefix test-,$(TEST_TARGETS))
flake8 --ignore E501 ./bootstrap.py ./setup.py
pylint --reports=n --disable=I --ignore-imports=y ./bootstrap.py ./setup.py

test-%:
docker run -it --volume $(CURDIR):/app --workdir=/app $* python bootstrap.py --help
Expand Down
6 changes: 3 additions & 3 deletions bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Use `awk -F'# >' 'NF>1 {print $2}' ./bootstrap.py` to see the flow.
"""

import yum
import getpass
import urllib2
import base64
Expand All @@ -19,13 +18,14 @@
import pwd
import glob
import shutil
import rpm
import rpmUtils.miscutils
import tempfile
from datetime import datetime
from optparse import OptionParser
from urllib import urlencode
from ConfigParser import SafeConfigParser
import yum
import rpm
import rpmUtils.miscutils


VERSION = '1.4.1'
Expand Down
Loading

0 comments on commit 159def7

Please sign in to comment.