From e042ddf11b14817f2192e883f8a6c3e6dec397f4 Mon Sep 17 00:00:00 2001 From: Max Jeblick Date: Wed, 16 Apr 2025 10:14:36 +0200 Subject: [PATCH 1/5] fix mypy version to 1.15 Signed-off-by: Max Jeblick --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3495242b..06631990 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ pytest = "^7.0.0" flake8 = "^7.0.0" isort = "^5.13.2" black = "^24.8.0" -mypy = "^1.13.0" +mypy = "1.15.0" pytest-cov = "^5.0.0" pytest-dependency = "^0.6.0" pytest-html = ">=4.1.1, <5.0.0" From 7cab1baf34f7af87b93b16a973a0c0fa3bebfd11 Mon Sep 17 00:00:00 2001 From: Max Jeblick Date: Wed, 16 Apr 2025 10:22:28 +0200 Subject: [PATCH 2/5] fix python and poetry version Signed-off-by: Max Jeblick --- .github/workflows/style.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index 19f6b008..3691dc3c 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -13,11 +13,11 @@ jobs: - name: Setup Python uses: actions/setup-python@v4 with: - python-version: 3.10.11 + python-version: 3.12.3 - name: Install Poetry run: | - curl -sSL https://install.python-poetry.org | python3 - + curl -sSL https://install.python-poetry.org | python3 - --version 1.8.5 echo "$HOME/.local/bin" >> $GITHUB_PATH # Add Poetry to the PATH - name: Install dependencies From 297de5c33c39f2f85fadcbeb92078821940e5db1 Mon Sep 17 00:00:00 2001 From: Max Jeblick Date: Wed, 16 Apr 2025 11:19:12 +0200 Subject: [PATCH 3/5] add mypy ignores Signed-off-by: Max Jeblick --- pyproject.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 06631990..1f9a6f6c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,4 +62,12 @@ ignore_missing_imports = true allow_redefinition = true strict_optional = false exclude = "(.eggs|.git|.hg|.mypy_cache|.nox|.tox|venv|.venv|doc-venv|.svn|_build|buck-out|build|dist|notebooks|tools|tmp|tests|bundles)" -disable_error_code = ["union-attr", "operator", "call-overload", "arg-type"] \ No newline at end of file +disable_error_code = ["union-attr", "operator", "call-overload", "arg-type"] + +[[tool.mypy.overrides]] +module = "kvpress.presses.base_press" +disable_error_code = ["attr-defined"] + +[[tool.mypy.overrides]] +module = "kvpress.pipeline" +disable_error_code = ["attr-defined", "assignment", "override"] \ No newline at end of file From d960b18dd86a92eb4c9781b24247c14f4e55b8c2 Mon Sep 17 00:00:00 2001 From: Max Jeblick Date: Wed, 16 Apr 2025 11:25:39 +0200 Subject: [PATCH 4/5] revert style.yml changes Signed-off-by: Max Jeblick --- .github/workflows/style.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index 3691dc3c..19f6b008 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -13,11 +13,11 @@ jobs: - name: Setup Python uses: actions/setup-python@v4 with: - python-version: 3.12.3 + python-version: 3.10.11 - name: Install Poetry run: | - curl -sSL https://install.python-poetry.org | python3 - --version 1.8.5 + curl -sSL https://install.python-poetry.org | python3 - echo "$HOME/.local/bin" >> $GITHUB_PATH # Add Poetry to the PATH - name: Install dependencies From 6993e9312f157f93c6fc981a6631e58d18eaeb92 Mon Sep 17 00:00:00 2001 From: Max Jeblick Date: Wed, 16 Apr 2025 11:26:24 +0200 Subject: [PATCH 5/5] revert mypy version Signed-off-by: Max Jeblick --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1f9a6f6c..21a07844 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ pytest = "^7.0.0" flake8 = "^7.0.0" isort = "^5.13.2" black = "^24.8.0" -mypy = "1.15.0" +mypy = "^1.13.0" pytest-cov = "^5.0.0" pytest-dependency = "^0.6.0" pytest-html = ">=4.1.1, <5.0.0"