From 9931b78c5f10c0dce9b3f79a8f82f4161a5ea3c4 Mon Sep 17 00:00:00 2001 From: Chris Lane Date: Fri, 1 Feb 2019 15:24:04 -0500 Subject: [PATCH] Lint - Added instruction to lint `setup.py` to `ci/lint.sh` - Updated `setup.py` per linter suggestions --- ci/lint.sh | 1 + setup.py | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/ci/lint.sh b/ci/lint.sh index e6a3d23..bfbb640 100755 --- a/ci/lint.sh +++ b/ci/lint.sh @@ -5,5 +5,6 @@ SCRIPT=`realpath $0` SCRIPTPATH=`dirname $SCRIPT` APPROOT=`realpath "$SCRIPTPATH/.."` +flake8 $APPROOT/setup.py flake8 $APPROOT/bin/cheat flake8 $APPROOT/cheat/*.py diff --git a/setup.py b/setup.py index 43cc96a..d6410f6 100644 --- a/setup.py +++ b/setup.py @@ -9,31 +9,31 @@ cheat_path = os.environ.get('CHEAT_PATH') or '/usr/share/cheat' # aggregate the systme-wide cheatsheets cheat_files = [] for f in os.listdir('cheat/cheatsheets/'): - cheat_files.append(os.path.join('cheat/cheatsheets/',f)) + cheat_files.append(os.path.join('cheat/cheatsheets/', f)) # specify build params setup( - name = 'cheat', - version = '2.4.2', - author = 'Chris Lane', - author_email = 'chris@chris-allen-lane.com', - license = 'GPL3', - description = 'cheat allows you to create and view interactive cheatsheets ' + name='cheat', + version='2.4.2', + author='Chris Lane', + author_email='chris@chris-allen-lane.com', + license='GPL3', + description='cheat allows you to create and view interactive cheatsheets ' 'on the command-line. It was designed to help remind *nix system ' 'administrators of options for commands that they use frequently, but not ' 'frequently enough to remember.', - url = 'https://github.com/chrisallenlane/cheat', - packages = [ + url='https://github.com/chrisallenlane/cheat', + packages=[ 'cheat', 'cheat.test', ], - scripts = ['bin/cheat'], - install_requires = [ + scripts=['bin/cheat'], + install_requires=[ 'docopt >= 0.6.1', 'pygments >= 1.6.0', 'termcolor >= 1.1.0', ], - data_files = [ + data_files=[ (cheat_path, cheat_files), ('/etc', ['config/cheat']), ],