Closed Zeitsperre closed 2 years ago
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
LGTM. As a committer to this repo, how does my workflow changes?
In the conda environment you use to commit changes:
$ conda install -c conda-forge pre_commit
# alternatively: $ pip install pre-commit
$ pre-commit install
Everything is automated from there. If a check fails, it will try to perform the needed fixes, so you can commit again. If something is code breaking (e.g. bad syntax) it will tell you where to intervene.
This PR adds a lightweight pre-commit configuration to clean up the code, imports, and conventions automatically in the notebooks and scripts. No interventions required, just
pre-commit install
at the top-level, and the rest is automated.