mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
fastcheck: do not test context in pycodestyle
`git diff` shows also context lines by default. When passed to pycodestyle it can produce errors unrelated to changed lines. It prevents running of subsequent checks. Limiting context to 0 lines by `git diff -U0` enables to test only the modified lines and allows to run subsequent checks. Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
parent
364ffd5a0f
commit
f316eb83dd
@ -215,7 +215,7 @@ endif
|
||||
echo -e "Fast linting files:\n$${FILES}\n"; \
|
||||
echo "pycodestyle"; \
|
||||
echo "-----------"; \
|
||||
git diff $${MERGEBASE} | \
|
||||
git diff -U0 $${MERGEBASE} | \
|
||||
$(PYTHON) -m pycodestyle --diff || exit $$?; \
|
||||
echo -e "\npylint"; \
|
||||
echo "------"; \
|
||||
|
Loading…
Reference in New Issue
Block a user