Closed lietu closed 2 months ago
Thanks @lietu ! I will keep this in mind for future development. However this is not a priority right now.
This issue is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 3 days.
This issue was closed because it has been stalled for 5 days with no activity.
Was quickly checking the repository and noticed my IDE lighting up in red with various style issues everywhere. You're not following PEP-8 and other best practices of Python, which will limit the collaboration you will get as it's painful for anyone to follow an unpredictable and abnormal style.
My personal recommendation is to set up pre-commit with hooks for
\n
-line endings from Windows/CRLF/\r\n
-line endingsas well as
requirements.txt
A
/.pre-commit-config.yaml
with contents similar to this should improve things a lot if taken into use:And
/bandit.yaml
with the contents:This is how it could look like: https://github.com/lietu/OpenFanController/tree/chore/precommit_autoformat or for a diff https://github.com/lietu/OpenFanController/commit/081cc0a7efef90c407780e90aecb371ea8899e6d but most of it is line endings so I'd suggest checking the "ignore whitespace" -version for issues with your Python code formatting that can easily be fixed with the automation
If you look around a bit you can probably find similar autoformatting utilities for the C -side which I can only assume suffers from the same issue of an unpredictable and uncommon code style considering I immediately saw unpredictable naming styles for variables when I opened
fan_control.c
and even filenames seem to suffer from lack of predictability.Is this something you'd be interested in integrating ot the repo?