Skip to content

Drop unused imports in Python server config - #90

Open
Herklos wants to merge 1 commit into
masterfrom
cursor/ruff-unused-imports-5269
Open

Herklos wants to merge 1 commit into
masterfrom
cursor/ruff-unused-imports-5269

Conversation

@Herklos

@Herklos Herklos commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Remove unused imports in the Python server config package: json in the loader, and StrEnum, ENCRYPTION_NONE, and ENCRYPTION_DELEGATED in the schema.
  • Drop the f prefix on three validation error strings that contain no placeholders. The error text is the same.

Ruff 0.17.0 with rules E4, E7, E9, and F on the two touched files: 7 findings before, 0 after.

uv run --python 3.12 --extra dev pytest in packages/python/server: 790 passed, 35 deselected.

Test plan

  • ruff check 0.17.0 on starfish_server/config/loader.py and starfish_server/config/schema.py
  • Python 3.12 server pytest (--extra dev)
Open in Web Open in Cursor 

Remove unused json, StrEnum, and encryption-mode imports, and drop the f prefix on validation errors that have no placeholders. The error text is unchanged.

Co-authored-by: herklos.dev <herklos.dev@protonmail.com>
@Herklos Herklos self-assigned this Oct 13, 2026

This branch has not been deployed

No deployments
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