pre-commit-hooks
pre-commit-hooks copied to clipboard
Some out-of-the-box hooks for pre-commit
In #329 we added a ban for ASCII-armored GPG private keys. But as far as I can tell we don't have a method for detecting un-armored private keys, since they...
Prevents high-precision and exponential-formatted floats from being modified when using the `pretty-format-json` hook. Closes #780
This package with an underscore instead of a dash seems to be new behavior (at least on Ubuntu 20.04 with Python 3.8
I need to write a hook to ensure empty files are not being committed, looking around the issues section it seems this has not been mentioned yet. Is this something...
As previously discussed in #834, this hook prevents empty files from being committed. It works out of the box and is compatible with python projects since `__init__.py` are excluded by...
Example output when both options are specified: ``` usage: file_contents_sorter.py [-h] [--ignore-case | --unique] filenames [filenames ...] file_contents_sorter.py: error: argument --unique: not allowed with argument --ignore-case ``` Closes #794.
This should avoid breaking ordering when --index-url (-i) and/or --extra-index-url are used. Closes #612.
Removed extra spaces and added period for consistency.
updates: - [github.com/asottile/pyupgrade: v3.15.0 → v3.15.1](https://github.com/asottile/pyupgrade/compare/v3.15.0...v3.15.1)
Hey Anthony! I have updated the requirements_txt_fixer.py to remove duplicate entries in the requirements file as per the bug in #960 Hope this helps! Jay