Little pre-commit script that fix timezone in your configuration file
You can check the timezone if you give latitude and longitude.
- repo: https://github.com/Pierre-Sassoulas/timezone-checker/
rev: 1.1.0
hooks:
- id: timezone-checker
args: [--longitude, "lon", --latitude, "lat", --timezone, "tz"]
usage: timezone-checker [-h] [-c MEANINGLESS_CHARACTERS] [FILES [FILES ...]]
positional arguments:
FILES File names to modify
optional arguments:
-h, --help show this help message and exit
-c MEANINGLESS_CHARACTERS, --meaningless-characters MEANINGLESS_CHARACTERS
Characters that have no meaning alone. If there are alone in a comment, it will be removed.