From a792a0a8a8337f170d2a666ec1857f54a8047ccb Mon Sep 17 00:00:00 2001 From: Adrian D'Alessandro Date: Thu, 8 Feb 2024 18:06:02 +0000 Subject: [PATCH 1/4] Update packages --- requirements-dev.txt | 60 +++++++++++++++++++++++--------------------- requirements.txt | 31 ++++++++++++----------- 2 files changed, 48 insertions(+), 43 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 5a53158..7884439 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -4,18 +4,17 @@ # # pip-compile --extra=dev --output-file=requirements-dev.txt # -anyio==3.7.1 +anyio==4.2.0 # via - # fastapi # httpx # starlette -attrs==23.1.0 +attrs==23.2.0 # via pytest-mypy -black==23.11.0 +black==24.1.1 # via datahub (pyproject.toml) build==1.0.3 # via pip-tools -certifi==2023.11.17 +certifi==2024.2.2 # via # httpcore # httpx @@ -26,19 +25,21 @@ click==8.1.7 # black # pip-tools # uvicorn -coverage[toml]==7.3.2 - # via pytest-cov +coverage[toml]==7.4.1 + # via + # coverage + # pytest-cov defusedxml==0.7.1 # via odfpy -distlib==0.3.7 +distlib==0.3.8 # via virtualenv et-xmlfile==1.1.0 # via openpyxl -exceptiongroup==1.1.3 +exceptiongroup==1.2.0 # via # anyio # pytest -fastapi==0.104.1 +fastapi==0.109.2 # via datahub (pyproject.toml) filelock==3.13.1 # via @@ -54,15 +55,15 @@ httpcore==1.0.2 # via httpx httpx==0.26.0 # via datahub (pyproject.toml) -identify==2.5.31 +identify==2.5.33 # via pre-commit -idna==3.4 +idna==3.6 # via # anyio # httpx iniconfig==2.0.0 # via pytest -mypy==1.7.1 +mypy==1.8.0 # via # datahub (pyproject.toml) # pytest-mypy @@ -72,7 +73,7 @@ mypy-extensions==1.0.0 # mypy nodeenv==1.8.0 # via pre-commit -numpy==1.26.2 +numpy==1.26.4 # via # h5py # pandas @@ -81,22 +82,22 @@ odfpy==1.4.1 # via pandas openpyxl==3.1.2 # via pandas -orjson==3.9.10 +orjson==3.9.13 # via datahub (pyproject.toml) packaging==23.2 # via # black # build # pytest -pandas[excel]==2.1.3 +pandas[excel]==2.2.0 # via datahub (pyproject.toml) -pandas-stubs==2.1.1.230928 +pandas-stubs==2.1.4.231227 # via datahub (pyproject.toml) pathspec==0.12.1 # via black pip-tools==7.3.0 # via datahub (pyproject.toml) -platformdirs==3.11.0 +platformdirs==4.2.0 # via # black # virtualenv @@ -104,13 +105,13 @@ pluggy==1.4.0 # via pytest pre-commit==3.6.0 # via datahub (pyproject.toml) -pydantic==1.10.13 +pydantic==1.10.14 # via # datahub (pyproject.toml) # fastapi pyproject-hooks==1.0.0 # via build -pytest==7.4.3 +pytest==8.0.0 # via # datahub (pyproject.toml) # pytest-cov @@ -122,17 +123,19 @@ pytest-mock==3.12.0 # via datahub (pyproject.toml) pytest-mypy==0.10.3 # via datahub (pyproject.toml) +python-calamine==0.1.7 + # via pandas python-dateutil==2.8.2 # via pandas -python-multipart==0.0.6 +python-multipart==0.0.7 # via datahub (pyproject.toml) -pytz==2023.3.post1 +pytz==2024.1 # via pandas pyxlsb==1.0.10 # via pandas pyyaml==6.0.1 # via pre-commit -ruff==0.1.5 +ruff==0.2.1 # via datahub (pyproject.toml) six==1.16.0 # via python-dateutil @@ -140,7 +143,7 @@ sniffio==1.3.0 # via # anyio # httpx -starlette==0.27.0 +starlette==0.36.3 # via fastapi tomli==2.0.1 # via @@ -151,10 +154,11 @@ tomli==2.0.1 # pip-tools # pyproject-hooks # pytest -types-pytz==2023.4.0.20240130 +types-pytz==2024.1.0.20240203 # via pandas-stubs typing-extensions==4.9.0 # via + # anyio # black # fastapi # mypy @@ -162,11 +166,11 @@ typing-extensions==4.9.0 # uvicorn tzdata==2023.4 # via pandas -uvicorn==0.24.0.post1 +uvicorn==0.27.0.post1 # via datahub (pyproject.toml) -virtualenv==20.24.6 +virtualenv==20.25.0 # via pre-commit -wheel==0.41.3 +wheel==0.42.0 # via pip-tools xlrd==2.0.1 # via pandas diff --git a/requirements.txt b/requirements.txt index bc86fc0..19bea0d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,27 +4,25 @@ # # pip-compile # -anyio==3.7.1 - # via - # fastapi - # starlette +anyio==4.2.0 + # via starlette click==8.1.7 # via uvicorn defusedxml==0.7.1 # via odfpy et-xmlfile==1.1.0 # via openpyxl -exceptiongroup==1.1.3 +exceptiongroup==1.2.0 # via anyio -fastapi==0.104.1 +fastapi==0.109.2 # via datahub (pyproject.toml) h11==0.14.0 # via uvicorn h5py==3.10.0 # via datahub (pyproject.toml) -idna==3.4 +idna==3.6 # via anyio -numpy==1.26.2 +numpy==1.26.4 # via # h5py # pandas @@ -32,19 +30,21 @@ odfpy==1.4.1 # via pandas openpyxl==3.1.2 # via pandas -orjson==3.9.10 +orjson==3.9.13 # via datahub (pyproject.toml) -pandas[excel]==2.1.3 +pandas[excel]==2.2.0 # via datahub (pyproject.toml) -pydantic==1.10.13 +pydantic==1.10.14 # via # datahub (pyproject.toml) # fastapi +python-calamine==0.1.7 + # via pandas python-dateutil==2.8.2 # via pandas -python-multipart==0.0.6 +python-multipart==0.0.7 # via datahub (pyproject.toml) -pytz==2023.3.post1 +pytz==2024.1 # via pandas pyxlsb==1.0.10 # via pandas @@ -52,16 +52,17 @@ six==1.16.0 # via python-dateutil sniffio==1.3.0 # via anyio -starlette==0.27.0 +starlette==0.36.3 # via fastapi typing-extensions==4.9.0 # via + # anyio # fastapi # pydantic # uvicorn tzdata==2023.4 # via pandas -uvicorn==0.24.0.post1 +uvicorn==0.27.0.post1 # via datahub (pyproject.toml) xlrd==2.0.1 # via pandas From 5697a897c916b5124bc7e7ecfca14e12ab1320d9 Mon Sep 17 00:00:00 2001 From: Adrian D'Alessandro Date: Fri, 9 Feb 2024 14:54:16 +0000 Subject: [PATCH 2/4] update pre-commit --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1f4da5d..5387f62 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.2.0' + rev: 'v0.2.1' hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 00738d965d73def42bc991edd993a0084ee702a2 Mon Sep 17 00:00:00 2001 From: Adrian D'Alessandro Date: Fri, 9 Feb 2024 14:57:14 +0000 Subject: [PATCH 3/4] Ignore mypy error --- datahub/opal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datahub/opal.py b/datahub/opal.py index 9a821e1..489fd71 100644 --- a/datahub/opal.py +++ b/datahub/opal.py @@ -123,7 +123,7 @@ def append(self, data: dict[str, int | float] | list[int | float]) -> None: data_index = data["frame"] dtypes = self._obj.dtypes - self._obj.loc[data_index] = row.loc[data_index] # type: ignore[call-overload] + self._obj.loc[data_index] = row.loc[data_index] # type: ignore[index] self._obj[:] = self._obj.astype(dtypes)[:] self._obj[self._obj.columns] = self._obj.astype(dtypes)[self._obj.columns] From 86946abb416fa31a85fae2da0ab2be25b687072a Mon Sep 17 00:00:00 2001 From: Adrian D'Alessandro Date: Fri, 9 Feb 2024 15:00:06 +0000 Subject: [PATCH 4/4] Stop dependabot automatic updates --- .github/dependabot.yml | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 70eb19e..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,15 +0,0 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 -updates: - - package-ecosystem: "pip" - directory: "/" - schedule: - interval: "monthly" - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "monthly"