Skip to content
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

add control point commands, read properties and rizer example #38

Merged
merged 9 commits into from
Apr 26, 2024

Conversation

bytosaur
Copy link
Contributor

@bytosaur bytosaur commented Mar 7, 2024

#36

  • complete ftms write properties according to current BT standard
  • add ftms target setting features (may be a braking change)
  • modify ftms example to demonstrate the updates
  • add tested rizer service and example

:)

@bytosaur
Copy link
Contributor Author

bytosaur commented Mar 8, 2024

@tensorturtle any idea why the linter is having a problem?

@zacharyedwardbull
Copy link
Owner

@bytosaur there is some cruft in the logs, I think I need to update the lint file. These are the lint errors relevant to your PR.

************* Module pycycling.fitness_machine_service
pycycling/fitness_machine_service.py:328:0: C0303: Trailing whitespace (trailing-whitespace)
pycycling/fitness_machine_service.py:374:0: C0303: Trailing whitespace (trailing-whitespace)
pycycling/fitness_machine_service.py:393:0: C0304: Final newline missing (missing-final-newline)
************* Module pycycling.rizer
pycycling/rizer.py:3:0: W1405: Quote delimiter ' is inconsistent with the rest of the file (inconsistent-quotes)
pycycling/rizer.py:4:0: W1405: Quote delimiter ' is inconsistent with the rest of the file (inconsistent-quotes)
pycycling/rizer.py:22:0: W1405: Quote delimiter ' is inconsistent with the rest of the file (inconsistent-quotes)
************* Module pycycling.ftms_parsers.fitness_machine_feature
pycycling/ftms_parsers/fitness_machine_feature.py:133:0: C0304: Final newline missing (missing-final-newline)

@zacharyedwardbull
Copy link
Owner

Hi @bytosaur, would you be able to address the lint errors then we can get this change merged in?
Cheers,
Zach

@bytosaur
Copy link
Contributor Author

sorry it took me some time to get back to it! Thanks for describing the problem for me. I didn't use any formatter and I am not used to this kind of issue :D
Hope this is solved now :)

@bytosaur
Copy link
Contributor Author

i think the fails for 3.9 and 3.10 is in the linter file as some terms are not recognized

@tensorturtle
Copy link
Contributor

The linter errors in 3.9 and 3.10 have to do with some recent compatibility changes I made, I will take a look.

@tensorturtle
Copy link
Contributor

tensorturtle commented Apr 25, 2024

The pylint complains about this line:

challenge_file = importlib.resources.open_binary(pycycling.data, 'sterzo-challenge-codes.dat')

This line preserves backwards compatibility for python versions less than 3.9.

I feel that we are justified in commenting # pylint: disable=deprecated-method on that line in order to skip the lint check, because we explicilty check for python version at runtime using sys.version_info.

The alternative would be to bump the minimum python version to 3.9, which I don't think is necessary.

@bytosaur Could you add that pylint comment and attempt merge?

@zacharyedwardbull zacharyedwardbull merged commit 6ddc15c into zacharyedwardbull:master Apr 26, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants