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

Evaluating ruff #683

Merged
merged 29 commits into from
Sep 11, 2024
Merged

Evaluating ruff #683

merged 29 commits into from
Sep 11, 2024

Conversation

helylle
Copy link
Contributor

@helylle helylle commented Sep 4, 2024

Evaluating using ruff for reformatting and linting

Adds linting to the pipeline
Skips one rule only for now for ambiguous variable names
Some fixes included for things found when linting but mostly unused imports, formatting and explicit re-export of imports in modules

@@ -1408,7 +1408,7 @@ def test_complete_invite_new_user(self):
email=invite.get_primary_mail_address(),
given_name=state_payload["state"]["name"]["given_name"],
surname=state_payload["state"]["name"]["surname"],
),
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ruff wanted to put a parenthesis on this due to the comma and indent it all as it was a hidden tuple due to the comma

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ruff wanted to remove e as an unused variable as the f-strings were just strings

@helylle helylle marked this pull request as ready for review September 5, 2024 14:10
Copy link

sonarqubecloud bot commented Sep 6, 2024

Copy link

sonarqubecloud bot commented Sep 9, 2024

@johanlundberg johanlundberg merged commit 8540f9a into main Sep 11, 2024
11 checks passed
@johanlundberg johanlundberg deleted the ylle_evaluating_ruff branch September 11, 2024 12:10
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