Add check for text file encodings

This commit is contained in:
Ville Skyttä 2021-11-11 19:23:42 +02:00
parent 56b4a7e506
commit 69d0dfbab2
5 changed files with 58 additions and 0 deletions

View file

@ -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.