close
Skip to content

Improve comprehensions - #620

Merged
hugovk merged 5 commits into
jazzband:masterfrom
hugovk:comprehensions
May 15, 2025
Merged

Improve comprehensions#620
hugovk merged 5 commits into
jazzband:masterfrom
hugovk:comprehensions

Conversation

@hugovk

@hugovk hugovk commented May 15, 2025

Copy link
Copy Markdown
Member

These are more efficient. Identified with the flake8-comprehensions (C4) tool in Ruff:

https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4

We could also add the flake8-comprehensions plugin to our config, or even the Ruff equivalent for more efficient linting as well?

@claudep claudep left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@hugovk
hugovk merged commit e2a0555 into jazzband:master May 15, 2025
@hugovk
hugovk deleted the comprehensions branch May 15, 2025 17:41
@hugovk

hugovk commented May 15, 2025

Copy link
Copy Markdown
Member Author

We could also add the flake8-comprehensions plugin to our config, or even the Ruff equivalent for more efficient linting as well?

What do you think about these options?

Would make sure future code also follows these patterns.

@claudep

claudep commented May 15, 2025

Copy link
Copy Markdown
Contributor

I'm fine with either one.

@hugovk hugovk added the changelog: Changed For changes in existing functionality label Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog: Changed For changes in existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants