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

Linting fixes #161

Merged
merged 2 commits into from
Jun 19, 2024
Merged

Linting fixes #161

merged 2 commits into from
Jun 19, 2024

Conversation

thinkl33t
Copy link
Collaborator

Description

These changes should allow the linting and formatting stages to pass.

@thinkl33t
Copy link
Collaborator Author

I've tested this on the simulator but not on a real badge.

Some things that need testing:

Comment on lines +465 to +467
Interrupt = self.i2c.readfrom_mem(self.ADDRESS, self.bc_level_int.register, 1)[
0
]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is the more generally accepted way of splitting this line

Suggested change
Interrupt = self.i2c.readfrom_mem(self.ADDRESS, self.bc_level_int.register, 1)[
0
]
Interrupt = self.i2c.readfrom_mem(
self.ADDRESS, self.bc_level_int.register, 1)[0]

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, i tried this (and the ones above are more readable than the autogenerated one here imo) but ruff keeps reformatting it back to its preferred option - are we happy enough to leave this as is and just merge accepting it looks a little odd?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Funny. Sure feel free to merge

@thinkl33t
Copy link
Collaborator Author

* fusb still works as expected / correctly

basic testing (making sure the cable plugged into itself still glows) seems to be fine

* [simple_tildagon guide](https://tildagon.badge.emfcamp.org/tildagon-apps/simple_tildagon/) still works correctly when followed

all code examples within still work

Copy link
Contributor

@npentrel npentrel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % one nit

@thinkl33t thinkl33t merged commit 73c0310 into main Jun 19, 2024
3 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.

2 participants