hthiery / python-fritzhome

Python Library to access AVM Fritz!Box homeautomation
MIT License
52 stars 37 forks source link

Run black and flake8 formatting on all files #75

Closed flabbamann closed 1 year ago

flabbamann commented 1 year ago

We have pre-commit hooks for black and flake8 but the python files are not (yet) formatted correctly.

The purpose of this PR is to format all files with pre-commit run --all-files to avoid code changes in other PRs get buried in a lot of formatting changes.

We could also run pre-commit in the actions pipeline to ensure all PRs are formatted correctly. Additionally I suggest adding isort to organise the imports automatically.

Please merge #74 first

hthiery commented 1 year ago

thank you