-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix precommit #75
Merged
Merged
fix precommit #75
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
f215d39
create Session object wrapping fastapi_utils
geospatial-jeff 352c057
add Session to core, try it out with /collections endpoint
geospatial-jeff 2d40c9a
init session on app creation
geospatial-jeff 9c17c5d
push Session lower
geospatial-jeff 506879f
remove db middlewares and event hooks
geospatial-jeff e10dfb3
relock
geospatial-jeff 580c2da
finish updating core
geospatial-jeff 6300108
update pagination client
geospatial-jeff 304663d
remove PostgresClient from core
geospatial-jeff ba5800c
remove PostgresClient from pagination, switch to mixin
geospatial-jeff 1c18ab9
add lookup_id staticmethod
geospatial-jeff d9e0ea4
make private method
geospatial-jeff e1d8ab7
refactor transactions
geospatial-jeff d41b4c7
client tests working
geospatial-jeff dacf3d4
resource tests working
geospatial-jeff 48e7208
lock pygeos to 0.8
geospatial-jeff 3a90507
oops
geospatial-jeff a9692e0
do exception handling in one place
geospatial-jeff 625c302
remove old code
geospatial-jeff e97686e
switch back to pygeos 0.9
geospatial-jeff ad364e6
update except
geospatial-jeff 4a14c5e
add tox, update pre-commit config, lint
geospatial-jeff e750df8
make precommit happy
geospatial-jeff 930df78
add precommit check
geospatial-jeff 7810b1f
fix syntax
geospatial-jeff 278961a
remove python-version
geospatial-jeff ccf4d97
switch pre-commit to 3.8
geospatial-jeff File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""stac_api""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
"""api module""" | ||
from .routes import create_endpoint_from_model, create_endpoint_with_depends | ||
|
||
__all__ = ("create_endpoint_from_model", "create_endpoint_with_depends") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
"""stac_api.api.extensions""" | ||
from .context import ContextExtension # noqa | ||
from .context import ContextExtension | ||
from .fields import FieldsExtension | ||
from .query import QueryExtension | ||
from .sort import SortExtension | ||
from .tiles import TilesExtension | ||
from .transaction import TransactionExtension | ||
|
||
# from .extension import ApiExtension # noqa | ||
from .fields import FieldsExtension # noqa | ||
from .query import QueryExtension # noqa | ||
from .sort import SortExtension # noqa | ||
from .tiles import TilesExtension # noqa | ||
from .transaction import TransactionExtension # noqa | ||
__all__ = ( | ||
"ContextExtension", | ||
"FieldsExtension", | ||
"QueryExtension", | ||
"SortExtension", | ||
"TilesExtension", | ||
"TransactionExtension", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""stac_api.models""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Linter configs | ||
[flake8] | ||
ignore = D203 | ||
exclude = .git,__pycache__,docs/source/conf.py,old,build,dist | ||
max-complexity = 12 | ||
max-line-length = 90 | ||
|
||
[mypy] | ||
no_strict_optional = true | ||
ignore_missing_imports = True | ||
|
||
[tool:isort] | ||
profile=black | ||
known_arturo=arturo | ||
known_first_party = stac_api | ||
known_third_party = rasterio,stac-pydantic,sqlalchemy,geoalchemy2,fastapi | ||
sections=FUTURE,STDLIB,THIRDPARTY,ARTURO,FIRSTPARTY,LOCALFOLDER |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Just use
profile=black
for isort. https://pycqa.github.io/isort/docs/configuration/black_compatibility/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.
Oh nevermind I see that elsewhere in the config.