Skip to content

Commit

Permalink
Merge pull request #1269 from ESMCI/jgfouca/code_checker_work_outside…
Browse files Browse the repository at this point in the history
…_esmci

code_checker needs to work outside of ESMCI/CIME
  • Loading branch information
jedwards4b authored Mar 21, 2017
2 parents 300cbf3 + d161ce9 commit fbfa996
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/lib/CIME/code_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def _should_pylint_skip(filepath):
def get_all_checkable_files():
###############################################################################
cimeroot = get_cime_root()
all_git_files = run_cmd_no_fail("git ls-files --full-name %s" % cimeroot, verbose=False).splitlines()
all_git_files = run_cmd_no_fail("git ls-files", from_dir=cimeroot, verbose=False).splitlines()

files_to_test = [item for item in all_git_files
if ((item.endswith(".py") or is_python_executable(os.path.join(cimeroot, item))) and not _should_pylint_skip(item))]
return files_to_test
Expand Down

0 comments on commit fbfa996

Please sign in to comment.