-
Notifications
You must be signed in to change notification settings - Fork 2
NP-01 chore: add type hints and enable strict mypy #145
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
Conversation
| app = FastAPI() | ||
|
|
||
| @asynccontextmanager | ||
| async def lifespan(app: FastAPI) -> AsyncIterator[None]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait a second this is... a feature hange claude.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wdym? Was adding this not intentional?
Pwnion
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ran through the test plan, all looks good. Just some nitpicks.
| app = FastAPI() | ||
|
|
||
| @asynccontextmanager | ||
| async def lifespan(app: FastAPI) -> AsyncIterator[None]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wdym? Was adding this not intentional?
Pwnion
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coooool
Motivation
Improve code quality and developer experience by adding comprehensive type hints throughout the codebase and enabling strict mypy type checking. This helps catch type-related bugs at development time and makes the code more self-documenting.
Changes
gitops/andgitops_server/modulestypes-invokepackage for invoke library type stubsFiles changed: 26 files across CLI and server components
Test Plan
uv run mypy gitops/ gitops_server/and verify no errorsuv run pytestto ensure all tests still passuv run ruff check .to verify no linting issuesgitops summary)