8000 Pre commit · libretime/libretime Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
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
Clone this wiki locally
0