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 the ability to flag previously-supported accessories & platforms as not (currently) supported #86

Merged
merged 16 commits into from
Nov 6, 2024

Conversation

civerachb-cpr
Copy link

Rather than removing them completely, we can override the assert_is_supported method to raise the necessary exception, which will have the same effect as a failed assertion.

I opted to raise the exception since it allows nicer exception handling at a higher level and could allow for better logging than a simple assert self.is_supported, 'This accessory isn't supported' style.

… arms, whose binary drivers don't exist in Jazzy yet)
@civerachb-cpr civerachb-cpr added enhancement New feature or request draft Something that's incomplete or still in-progress labels Nov 4, 2024
@civerachb-cpr civerachb-cpr requested a review from a team as a code owner November 4, 2024 17:29
@civerachb-cpr civerachb-cpr requested review from tonybaltovski, mhosmar-cpr, roni-kreinin, luis-camero and hilary-luo and removed request for a team November 4, 2024 17:29
@civerachb-cpr
Copy link
Author

Added a similar exception for the W200 to mark it as unsupported.

@civerachb-cpr civerachb-cpr removed the draft Something that's incomplete or still in-progress label Nov 5, 2024
@civerachb-cpr civerachb-cpr changed the title Add the ability to flag previously-supported accessories as not (currently) supported Add the ability to flag previously-supported accessories & platforms as not (currently) supported Nov 5, 2024
angular.z.min_velocity": -2.0
angular.z.max_acceleration": 6.0
angular.z.min_acceleration": -6.0
linear.x.max_velocity': 1.0
Copy link
Member

Choose a reason for hiding this comment

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

Should these quotes have a corresponding quote to make a pair?

Copy link
Author

Choose a reason for hiding this comment

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

Good catch. I'm not sure why these appear to have been missing the matching quotation marks in the first place, but I've fixed them up now.

…ructure to avoid `foo.bar.spam: eggs` notation
Copy link
Collaborator

@luis-camero luis-camero left a comment

Choose a reason for hiding this comment

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

Do we want to set an E501, line length, limit for ourselves or should we just allow any length?

@civerachb-cpr civerachb-cpr merged commit 6c39288 into jazzy-2.0RC Nov 6, 2024
4 checks passed
@civerachb-cpr civerachb-cpr deleted the cib/unsupported-jazzy branch November 6, 2024 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants