This is a mere formatting PR that introduces pre-commit, which will check all Python files using black, all files concerning trailing white space (excluding README.md, where trailing white space might be part of the formatting), and checking whether all JSON and YAML/YML files can be parsed properly.
IMPORTANT: To use this going forward pip install the extra test and run pre-commit install in the repository folder.
This has led to a lot of formatting updates, and it found a YML and JSON file that couldn't be properly parsed (.travis.yml and tsconfig.json, respectively).
Also, I have updated some formatting in the central Python file, moving some definitions to utils.py and otherwise tried to minify stuff.
Finally, I have updated the action versions used to the latest (actions/checkout@v2 and actions/setup-python@v2).
This is a mere formatting PR that introduces
pre-commit
, which will check all Python files using black, all files concerning trailing white space (excludingREADME.md
, where trailing white space might be part of the formatting), and checking whether all JSON and YAML/YML files can be parsed properly.IMPORTANT: To use this going forward
pip install
the extratest
and runpre-commit install
in the repository folder.This has led to a lot of formatting updates, and it found a YML and JSON file that couldn't be properly parsed (
.travis.yml
andtsconfig.json
, respectively).Also, I have updated some formatting in the central Python file, moving some definitions to
utils.py
and otherwise tried to minify stuff.Finally, I have updated the action versions used to the latest (
actions/checkout@v2
andactions/setup-python@v2
).