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

@ -32,6 +32,12 @@
entry: check-docstring-first
language: python
types: [python]
- id: check-encoding
name: check text files have desired encoding
description: checks that text files decode cleanly using an encoding.
entry: check-encoding
language: python
types: [text]
- id: check-executables-have-shebangs
name: check that executables have shebangs
description: ensures that (non-binary) executables have a shebang.