Skip to content
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

Enable mypy in pre-commit, and fix issues found by it #100

Merged
merged 18 commits into from
Nov 12, 2024
Merged

Conversation

philvarner
Copy link
Contributor

@philvarner philvarner commented Nov 8, 2024

I replaced the existing custom pre-commit action with a simpler (non-cached) call to run it directly. If we want to do it right, we should be using https://github.com/marketplace/pre-commit-ci, but this will suffice for now.

@philvarner
Copy link
Contributor Author

@c-wygoda could you merge this as an administrator? I can't because the removed lint job "failed" (doesn't exist and didn't run).

@c-wygoda
Copy link
Member

removed lint from the required checks since it's baked into the test job now.

@c-wygoda c-wygoda merged commit 435d0b1 into main Nov 12, 2024
2 checks passed
@c-wygoda c-wygoda deleted the pv/mypy branch November 12, 2024 15:50
@@ -16,7 +16,7 @@ class OrderProperties(BaseModel):
class Order(Feature[Geometry, OrderProperties]):
# We need to enforce that orders have an id defined, as that is required to
# retrieve them via the API
id: StrictInt | StrictStr # type: ignore
Copy link
Member

Choose a reason for hiding this comment

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

# type: ignore here is required to satisfy certain type checkers (pyright) because this change makes id incompatible with Feature (which has id: StrictInt | StrictStr | None) without a default value.

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.

3 participants