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

Re-enable the typing github action #2445

Merged
merged 4 commits into from
Jul 15, 2024
Merged

Re-enable the typing github action #2445

merged 4 commits into from
Jul 15, 2024

Conversation

samuelhwilliams
Copy link
Contributor

@samuelhwilliams samuelhwilliams commented Jul 13, 2024

Related discussion/stream of work: #2440

This turns back on the typing check, with all of the '--strict' options disabled, and then makes the minimum set of code changes required to make the typing tests pass.

Future patches will slowly work to re-enable each of the disabled mypy checks so that the burden of typing the codebase is a bit less overwhelming.

Also fixes running the test suite on macos with libgeos by pulling in an updated version of geoalchemy2.

@samuelhwilliams samuelhwilliams self-assigned this Jul 13, 2024
@samuelhwilliams samuelhwilliams marked this pull request as draft July 13, 2024 13:18
@samuelhwilliams samuelhwilliams removed their assignment Jul 13, 2024
@samuelhwilliams samuelhwilliams marked this pull request as ready for review July 13, 2024 13:59
@samuelhwilliams
Copy link
Contributor Author

Going to move forward with this just to unblock other work on flask-admin, but happy to hear thoughts retrospectively - especially if anyone catches anything I've missed here.

Disables all of the flags that `--strict` adds, so that we can gradually
pick away at them more easily over time.
* Install missing types for mypy
* Use shapely>=1.8, which has the correct resolution for libgeos on
  darwin.
* Use '-r tests.in' in `typing.in`, so that all packages are installed
  to aid in type resolution.
@samuelhwilliams samuelhwilliams merged commit 0b5c387 into pallets-eco:master Jul 15, 2024
7 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant