Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Remove pinning of fastapi<0.89 #236

Merged
merged 4 commits into from
Feb 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/typing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install .[test]
python -m pip install starlette==0.20.4
python -m pip install starlette==0.25.0
- name: Run mypy
run: |
mypy -p ert_storage --ignore-missing-imports --disallow-untyped-defs --show-error-codes
mypy -p ert_storage --ignore-missing-imports --disallow-untyped-defs --show-error-codes --exclude _alembic --exclude testing
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
},
install_requires=[
"alembic",
"fastapi<0.89",
"fastapi",
"httpx",
"numpy",
"pandas",
Expand Down
1 change: 0 additions & 1 deletion src/ert_storage/endpoints/ensembles.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
def post_ensemble(
*, db: Session = Depends(get_db), ens_in: js.EnsembleIn, experiment_id: UUID
) -> ds.Ensemble:

experiment = db.query(ds.Experiment).filter_by(id=experiment_id).one()
active_reals = (
ens_in.active_realizations
Expand Down
1 change: 0 additions & 1 deletion src/ert_storage/endpoints/updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ def create_update(
db: Session = Depends(get_db),
update: js.UpdateIn,
) -> js.UpdateOut:

ensemble = db.query(ds.Ensemble).filter_by(id=update.ensemble_reference_id).one()
update_obj = ds.Update(
algorithm=update.algorithm,
Expand Down
1 change: 0 additions & 1 deletion tests/integration/test_azure_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def test_blob(client, azure_client, simple_ensemble):


def test_blocked_blob(client, azure_client, simple_ensemble):

ensemble_id = simple_ensemble()

size = 12 * 1024**2
Expand Down
1 change: 0 additions & 1 deletion tests/integration/test_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,6 @@ def test_forward_model_file(client, simple_ensemble):

@pytest.mark.skip(reason="github.com/equinor/ert-storage/issues/234")
def test_chunked_blob(client, simple_ensemble):

ensemble_id = simple_ensemble()

size = 12 * 1024**2
Expand Down