Skip to content

Comments

Add ruff PL.#45

Merged
frafra merged 2 commits intomainfrom
44-add-ruff-pl
Jun 12, 2025
Merged

Add ruff PL.#45
frafra merged 2 commits intomainfrom
44-add-ruff-pl

Conversation

@emilte
Copy link
Contributor

@emilte emilte commented Jun 10, 2025

Closes #44

@emilte emilte self-assigned this Jun 10, 2025
@emilte emilte linked an issue Jun 10, 2025 that may be closed by this pull request
@emilte emilte marked this pull request as ready for review June 10, 2025 23:57
- Added "PL" to the ruff linting select options.
- Updated per-file ignores for tests to include "PLR2004".
- Corrected comment grammar in `generate` function.
- Simplified conditional structure in `Sample` model validation.
- Removed unused import statements in views.
@emilte emilte requested review from frafra and nicokant June 12, 2025 15:18
# NOTE: this is unsafe unless this function is executed in a queue
# by just one worker to prevent concurrency
with connection.cursor() as cursor:
with connection.cursor() as cursor: # noqa: PLW2901 # Was this intentional?
Copy link
Collaborator

Choose a reason for hiding this comment

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

I do not think so. This function also has an error handling problem.

@frafra frafra added this pull request to the merge queue Jun 12, 2025
Merged via the queue into main with commit b86a45a Jun 12, 2025
12 checks passed
@frafra frafra deleted the 44-add-ruff-pl branch June 12, 2025 18:55
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.

Add ruff PL.

2 participants