mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 03:56:54 +00:00
Add check for text file encodings
This commit is contained in:
parent
56b4a7e506
commit
69d0dfbab2
5 changed files with 58 additions and 0 deletions
|
|
@ -49,6 +49,11 @@ Check for files with names that would conflict on a case-insensitive filesystem
|
|||
#### `check-docstring-first`
|
||||
Checks for a common error of placing code before the docstring.
|
||||
|
||||
#### `check-encoding`
|
||||
Checks that text files have desired encoding.
|
||||
- `--encoding` - specify encoding to assert; if not specified, default is
|
||||
[platform dependent](https://docs.python.org/3/library/functions.html?highlight=encoding#open)
|
||||
|
||||
#### `check-executables-have-shebangs`
|
||||
Checks that non-binary executables have a proper shebang.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue