Closed MihailPereverza closed 4 months ago
I've implemented a function _get_file_lines that emulates the behavior of self._git_diff(), which returns an empty list for binary files. Additionally, the function _validate_path_to_diff leverages the basic path validation mechanisms used in self._git_diff() to ensure consistency.
This is looking alright. Can you add a test and make sure to run isort and black?
Yes, it's ready. I have added the tests and ran the linters using the script poetry run bash -x verify.sh
.
Alright, lets get this out there. Thanks for the PR!
Released https://pypi.org/project/diff-cover/9.1.1/ Thanks again!
Fixes #412