Bumped numpy from 1.13.1 to 1.14.0 to satisfy TF 1.12.2 dependency. Updated grep commands in validator to also be compatible with BSD.

This commit is contained in:
dvanaken
2019-10-22 15:11:03 -04:00
committed by Dana Van Aken
parent 68fedf765d
commit 777c42c979
4 changed files with 9 additions and 10 deletions

View File

@@ -206,15 +206,15 @@ def validate_dir(root_dir):
def get_git_files(state):
if state == 'staged':
# Files staged for commit
cmd = r"git diff --name-only --cached --diff-filter=d | grep -E '*\.(py|java)$'"
cmd = r"git diff --name-only --cached --diff-filter=d | grep -E '.*\.(py|java)$'"
elif state == 'unstaged':
# Tracked files not staged for commit
cmd = r"git diff --name-only --diff-filter=d | grep -E '*\.(py|java)$'"
cmd = r"git diff --name-only --diff-filter=d | grep -E '.*\.(py|java)$'"
elif state == 'untracked':
# Untracked files not staged for commit
cmd = r"git ls-files --other --exclude-standard | grep -E '*\.(py|java)$'"
cmd = r"git ls-files --other --exclude-standard | grep -E '.*\.(py|java)$'"
with settings(warn_only=True):
res = local(cmd, capture=True)