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

Ruff changes #200

Merged
merged 4 commits into from
Nov 13, 2023
Merged

Ruff changes #200

merged 4 commits into from
Nov 13, 2023

Conversation

taldcroft
Copy link
Member

@taldcroft taldcroft commented Nov 13, 2023

Description

This applies the ruff ruleset in sot/skare3#1202.

Interface impacts

None

Testing

Unit tests

  • Mac

Independent check of unit tests by Jean

  • Linux

Functional tests

No functional testing.

JC: For functional testing -- I made a bunch of ugly whitespace edits to yoshi.py and confirmed that ruff as called by "pre-commit run" cleaned them up.

if not isinstance(att, Quat):
att = Quat(att)
out.append(att)
out = [(att if isinstance(att, Quat) else Quat(att)) for att in atts]
Copy link
Contributor

Choose a reason for hiding this comment

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

A code change -- and totally fine.

@@ -546,7 +546,7 @@ def compare_intervs(intervs, exp_intervs):
assert len(intervs) == len(exp_intervs)
for interv, exp_interv in zip(intervs, exp_intervs):
assert interv.keys() == exp_interv.keys()
for key in interv.keys():
for key in interv:
Copy link
Contributor

Choose a reason for hiding this comment

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

A code change -- also fine.

@taldcroft taldcroft merged commit 72edbfa into master Nov 13, 2023
2 checks passed
@taldcroft taldcroft deleted the ruff-redux branch November 13, 2023 20:22
@javierggt javierggt mentioned this pull request Dec 5, 2023
@javierggt javierggt mentioned this pull request Feb 6, 2024
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