Pierre-Sassoulas / timezone-checker

Script for checking the timzeone in configuration file where lattitude and longitude are given

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

timezone-checker

Little pre-commit script that fix timezone in your configuration file

PyPI version PRs Welcome

You can check the timezone if you give latitude and longitude.

Installation

-   repo: https://github.com/Pierre-Sassoulas/timezone-checker/
    rev: 1.1.0
    hooks:
    - id: timezone-checker
      args: [--longitude, "lon", --latitude, "lat", --timezone, "tz"]

Use

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.

Before

After

About

Script for checking the timzeone in configuration file where lattitude and longitude are given

License:MIT License


Languages

Language:Python 100.0%