-
-
Notifications
You must be signed in to change notification settings - Fork 231
Pre commit
Kyle Robbertze edited this page Jul 2, 2021
·
1 revision
LibreTime uses the black coding style for Python and you must ensure that your code follows it. If not, the CI will fail and your Pull Request will not be merged. Similarly, the Python import statements are sorted with isort. There is configuration provided for pre-commit, which will ensure that code matches the expected style and conventions when you commit changes. It is set up by running:
sudo apt install pre-commit
pre-commit install
You can also run it anytime using:
pre-commit run --all-files