summaryrefslogtreecommitdiff
path: root/tools/linter.py
diff options
context:
space:
mode:
authorGanesh Kathiresan <ganesh3597@gmail.com>2021-02-22 21:46:24 +0530
committerGanesh Kathiresan <ganesh3597@gmail.com>2021-03-07 11:18:24 +0530
commit11cfa1c942ce2ed3d0e08ab50eb1612bb51ec60e (patch)
treea061341052f84ef072f3745e4aecf0c127571baa /tools/linter.py
parent6464b4bfd650f6033b2933b6857075dd27e270d5 (diff)
downloadnumpy-11cfa1c942ce2ed3d0e08ab50eb1612bb51ec60e.tar.gz
ENH, MAINT: Added runtest options | Added unified diff
Diffstat (limited to 'tools/linter.py')
-rw-r--r--tools/linter.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/linter.py b/tools/linter.py
index 68d869367..f51a8848b 100644
--- a/tools/linter.py
+++ b/tools/linter.py
@@ -30,9 +30,10 @@ class DiffLinter:
sys.exit(1)
if uncommitted:
- diff = self.repo.git.diff(self.head, '***.py')
+ diff = self.repo.git.diff(self.head, '--unified=0', '***.py')
else:
- diff = self.repo.git.diff(commit, self.head, '***.py')
+ diff = self.repo.git.diff(commit, self.head,
+ '--unified=0', '***.py')
return diff
def run_pycodestyle(self, diff):