-
-
Notifications
You must be signed in to change notification settings - Fork 217
Open
Labels
enhancementgssoc25GirlScript Summer of Code 2025GirlScript Summer of Code 2025level 12 points2 pointsquestion
Description
Description:
Currently, our Ruff configuration globally ignores PLC0415
https://docs.astral.sh/ruff/rules/import-outside-top-level/
We should narrow this down by removing the global ignore and specifying only the files that actually need it via per-file-ignores
in pyproject.toml
. This will keep the rule enabled everywhere else while still allowing necessary exceptions.
This will help us:
- Maintain stricter linting rules across the project.
- Prevent accidental top-level import violations.
- Improve long-term code health and maintainability.
Acceptance Criteria:
- Identify all files currently triggering
PLC0415
. - Update
pyproject.toml
to includeper-file-ignores
for those files. - Remove the global
PLC0415
ignore from the Ruff configuration. - Confirm Ruff passes cleanly with the new configuration.
Are you going to work on implementing this?
- Yes
- No
Metadata
Metadata
Assignees
Labels
enhancementgssoc25GirlScript Summer of Code 2025GirlScript Summer of Code 2025level 12 points2 pointsquestion
Type
Projects
Status
In progress