diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index c59b286c..9f1ce08e 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -32,7 +32,7 @@ jobs: with: persist-credentials: false - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 - - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 + - uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 with: path: ~/.cache/pre-commit key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }} diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index 7eaacc55..7c982f30 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -26,6 +26,6 @@ jobs: persist-credentials: false - name: Run zizmor - uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2 + uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3 with: persona: pedantic diff --git a/docs/data-processing/apis/fastapi/example.rst b/docs/data-processing/apis/fastapi/example.rst index e097d687..0f94c9cd 100644 --- a/docs/data-processing/apis/fastapi/example.rst +++ b/docs/data-processing/apis/fastapi/example.rst @@ -16,7 +16,6 @@ Erstellt die Datei :file:`main.py` mit diesem Inhalt: from fastapi import FastAPI - app = FastAPI() @@ -81,7 +80,6 @@ zu erhalten: from fastapi import FastAPI - app = FastAPI() diff --git a/docs/data-processing/apis/grpc/accounts_server.py b/docs/data-processing/apis/grpc/accounts_server.py index 4370e728..35ea8525 100644 --- a/docs/data-processing/apis/grpc/accounts_server.py +++ b/docs/data-processing/apis/grpc/accounts_server.py @@ -3,7 +3,6 @@ # SPDX-License-Identifier: BSD-3-Clause import logging - from concurrent import futures import accounts_pb2 as accounts_messages diff --git a/docs/data-processing/apis/grpc/tests/test_accounts.py b/docs/data-processing/apis/grpc/tests/test_accounts.py index 5761c136..0608f451 100644 --- a/docs/data-processing/apis/grpc/tests/test_accounts.py +++ b/docs/data-processing/apis/grpc/tests/test_accounts.py @@ -6,7 +6,6 @@ import grpc import pytest - from accounts_pb2 import CreateAccountRequest, GetAccountsRequest diff --git a/docs/data-processing/postgresql/sqlalchemy.rst b/docs/data-processing/postgresql/sqlalchemy.rst index 3d00b9ea..cd04f65f 100644 --- a/docs/data-processing/postgresql/sqlalchemy.rst +++ b/docs/data-processing/postgresql/sqlalchemy.rst @@ -44,7 +44,6 @@ Datenbankverbindung from sqlalchemy import create_engine - engine = create_engine("postgresql:///example", echo=True) Datenmodell @@ -56,7 +55,6 @@ Datenmodell from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship - Base = declarative_base() diff --git a/docs/data-processing/serialisation-formats/toml/index.rst b/docs/data-processing/serialisation-formats/toml/index.rst index ef548fde..ebb6a607 100644 --- a/docs/data-processing/serialisation-formats/toml/index.rst +++ b/docs/data-processing/serialisation-formats/toml/index.rst @@ -66,7 +66,6 @@ Beispiel import toml - config = toml.load("pyproject.toml") .. seealso:: diff --git a/docs/performance/ds_kmeans.py b/docs/performance/ds_kmeans.py index 2039e1d1..0c528ca2 100644 --- a/docs/performance/ds_kmeans.py +++ b/docs/performance/ds_kmeans.py @@ -3,7 +3,6 @@ # SPDX-License-Identifier: BSD-3-Clause import numpy as np - from dask import array as da from dask import dataframe as dd diff --git a/docs/performance/index.rst b/docs/performance/index.rst index 4a179198..13ac6776 100644 --- a/docs/performance/index.rst +++ b/docs/performance/index.rst @@ -58,7 +58,6 @@ Beispieldaten können wir uns erstellen mit: from sklearn.datasets import make_blobs - points, labels_true = make_blobs( n_samples=1000, centers=3, random_state=0, cluster_std=0.60 ) @@ -136,7 +135,6 @@ k-Means-Algorithmus gibt es sogar gleich zwei Implementierungen: from sklearn.cluster import KMeans - KMeans(10).fit_predict(points) * `dask_ml.cluster.KMeans @@ -146,7 +144,6 @@ k-Means-Algorithmus gibt es sogar gleich zwei Implementierungen: from dask_ml.cluster import KMeans - KMeans(10).fit(points).predict(points) Gegen diese bestehenden Lösungen könnte bestenfalls sprechen, dass sie einen diff --git a/docs/performance/sp_kmeans.py b/docs/performance/sp_kmeans.py index 901e6182..81f4289a 100644 --- a/docs/performance/sp_kmeans.py +++ b/docs/performance/sp_kmeans.py @@ -4,7 +4,6 @@ import numpy as np import pandas as pd - from scipy.spatial import cKDTree