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

feat: Add ruff rules SIM #3979

Merged
merged 1 commit into from
Oct 2, 2024
Merged

Conversation

cbornet
Copy link
Collaborator

@cbornet cbornet commented Oct 1, 2024

No description provided.

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Oct 1, 2024
vertex_id = self._vertex.id
else:
vertex_id = self.display_name or self.__class__.__name__
vertex_id = self._vertex.id if self._vertex else self.display_name or self.__class__.__name__
Copy link
Collaborator

Choose a reason for hiding this comment

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

This simplification, imo, is a bit harder to read in certain cases. Don't mind it enough to change, unless others had opinions too.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the rule : https://docs.astral.sh/ruff/rules/if-else-block-instead-of-if-exp/
A matter of taste probably...

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Oct 1, 2024
@ogabrielluiz ogabrielluiz merged commit 942c8dc into langflow-ai:main Oct 2, 2024
27 checks passed
@cbornet cbornet deleted the ruff-rules-sim branch October 2, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants