Precommit-diffcheck

Latest version: v1.12

Safety actively analyzes 687918 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

1.11

* Emit `precommit_diffcheck.DiffcheckError` instead of `UnicodeDecode` exceptions on failure to decode content. Also avoid double-decoding in failure.
* Fix diff command when --from-ref/--to-ref is not provided (default case)

1.10

* Show useful error when we can't get a diff due to Unicode issues.
* Improve commands for getting diffs to handle --from-ref better

1.9

* Restore support for Python 3.6

1.8

* Add `filter_filenames()` and `is_excluded()` functions.
* Add an `lru_cache` on `get_git_root()` for performance.

1.7

* Add `get_added_lines_for_file()`
* Add `get_filname_to_added_lines()`

1.6

* Normalize filenames when providing file content as a diff

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.