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

library, docs & test updates #29

Merged
merged 8 commits into from
Jun 28, 2024
Merged

library, docs & test updates #29

merged 8 commits into from
Jun 28, 2024

Conversation

chrstnbwnkl
Copy link
Collaborator

  • Updates Python (at least 3.9 required now, 3.8 support was dropped)
  • Dependency updates:
    • FastAPI
    • SQLModel
    • Pydantic (major version update, cause of a lot of the changes proposed by the PR)
  • linting/formatting
    • ruff to replace flake8 (flake8 seems to be behind on some dependency updates anyway)
  • Doc updates
  • YAML/MD formatting was off
  • Valhalla was complaining about GDAL not being found (I guess the base image has it so I just installed it)
  • Test updates
    • dependency updates broke some of the tests because the error responses changed

@@ -73,7 +74,7 @@ def test_job_get_jobs(get_client, basic_auth_header):
# parameterize the ones that should work with the default params
@pytest.mark.parametrize(
"key_value",
(("bbox", "0,0,1,1"), ("provider", Providers.OSM), ("status", Statuses.QUEUED), ("update", False)),
(("bbox", "0,0,1,1"), ("provider", "osm"), ("status", "Queued"), ("update", False)),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Enum strings were turned into their literals for some reason ("Providers.OSM"), better to test with actual strings anyway :)

@nilsnolde nilsnolde marked this pull request as ready for review June 17, 2024 06:25
nilsnolde
nilsnolde previously approved these changes Jun 17, 2024
Copy link
Collaborator

@nilsnolde nilsnolde left a comment

Choose a reason for hiding this comment

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

LGTM

@ltbam ltbam merged commit 181f943 into master Jun 28, 2024
1 check passed
@ltbam ltbam deleted the cb-update-only branch June 28, 2024 12:54
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