-
Notifications
You must be signed in to change notification settings - Fork 48
Feature/backport the changes made on the remcom fork #279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/backport the changes made on the remcom fork #279
Conversation
julesxxl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha. I think the .DS_Store and .idea appeared because of me...
The merge-base changed after approval.
6f80dd7 to
945ab89
Compare
945ab89 to
2335988
Compare
…l/closing management from remcom fork
…or definition file needs to be parsed to that current labels remain in place
|
current state of PR is that almost all changes have been backported and some extra workflow steps for auto scanning ruff have been added. Last changes are some CI related changes that still need to be ported. |
|
After further consideration this PR will only focus on the PORT and necessary CI changes to mature this repository. |
|
@sfstar Nice! i will review it this weekend! |
|
Great! |
|
Hello Jules, Thanks for checking. |
Firstly, I checked their .pre-commit-config.yaml for the commands. Then, I copied-pasted their mypy.ini (don't really know why they don't put it in the pyproject.tom). mypy custom_components
pylint --ignore-missing-annotations=y --score=y custom_components
ruff check --fix custom_components
ruff format custom_componentsThey also use other tools. An interesting one for us: codespell. As for the checking of the yaml, json, the pretty format, the requirements generation, etc., we don't mind. |
|
@sfstar i tested the changes and all still works as expected. Only one small thing in custom_components/victron/manifest.json you need to put the version to "v0.0.0". Otherwise the release script wont update the version |
|
Thanks for checking jules and remcom, I've changed the manifest.json to have the version number as v0.0.0 @julesxxl, thanks for providing the commands. If you would like to make these changes jules, then let me know (I will initially be focussing on pymodbus v3.9.0 support) after these PR's. (So that we can parrallel changes without having to worry about to many conflict ;) ) |
|
@sfstar: ok, we'll see the linting/typing after these PR. |
to be merged after #278 is merged (also pr information needs expansion)changed has been merged.TODO's
Introduce linting workflow item (to allow this to be enforced)
~~ Try to get this to run inside an checked out version of ha core dev so that the ruff settings can be inherited ~~ <-- implementation in seperate PR to improve reviewability.
Backport all non-formatting related changes from the remcom fork
possibly: prepare for pymodbus 3.9.0 by hauling over decoding logic (to be moved to other pr if this PR becomes massive)(This will be done in a seperate PR to improve reviewability)