From 3a14b8f4a58fd4449776cd47a003c317e61c86fb Mon Sep 17 00:00:00 2001 From: Eli White Date: Fri, 19 Aug 2016 21:07:10 -0700 Subject: [PATCH] Revert "Trying to set up appveyor for windows based CI" (#4317) --- appveyor.yml | 19 ------------------- pylint-recursive.py | 8 ++++---- 2 files changed, 4 insertions(+), 23 deletions(-) delete mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index d8de971f99..0000000000 --- a/appveyor.yml +++ /dev/null @@ -1,19 +0,0 @@ -build: false - -environment: - matrix: - - PYTHON: "C:\\Python27" - PYTHON_VERSION: "2.7.x" # currently 2.7.9 - PYTHON_ARCH: "32" - - - PYTHON: "C:\\Python27-x64" - PYTHON_VERSION: "2.7.x" # currently 2.7.9 - PYTHON_ARCH: "64" - -install: - - "%PYTHON%\\python.exe -m pip install -r requirements.txt" - - "%PYTHON%\\python.exe -m pip install pylint" - -test_script: - - python pylint-recursive.py - - python -m unittest discover -v -p "*_test.py" diff --git a/pylint-recursive.py b/pylint-recursive.py index 638cc7b842..82c4664e97 100644 --- a/pylint-recursive.py +++ b/pylint-recursive.py @@ -2,7 +2,7 @@ ''' Author: gregorynicholas (github), modified by Jacob Henderson (jacohend, github) Module that runs pylint on all python scripts found in a directory tree.. -''' +''' import os #import re @@ -19,7 +19,7 @@ def check(module): ''' apply pylint to the file specified if it is a *.py file ''' - module_name = module.rsplit(os.sep, 1)[1] + module_name = module.rsplit('/', 1)[1] if module[-3:] == ".py" and module_name not in IGNORED_FILES: print "CHECKING ", module pout = os.popen('pylint %s'% module, 'r') @@ -34,10 +34,10 @@ def check(module): errors.append("FILE: " + module) errors.append("FAILED pylint inspection: " + line) return False - + if __name__ == "__main__": try: - print sys.argv + print sys.argv BASE_DIRECTORY = sys.argv[1] except IndexError: print "no directory specified, defaulting to current working directory"