diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e16c8ab1..1d7e5b32 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.16.2 + rev: v2.21.0 hooks: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject @@ -44,7 +44,7 @@ repos: entry: isort --profile=black name: isort (python) - repo: https://github.com/psf/black-pre-commit-mirror - rev: 26.1.0 + rev: 26.3.1 hooks: - id: black - repo: https://github.com/tonybaloney/perflint @@ -60,7 +60,7 @@ repos: additional_dependencies: - black - repo: https://github.com/codespell-project/codespell - rev: v2.4.1 + rev: v2.4.2 hooks: - id: codespell args: [--toml pyproject.toml] diff --git a/docs/data-processing/apis/fastapi/example.rst b/docs/data-processing/apis/fastapi/example.rst index 1e40aac5..4253af3b 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/postgresql/db-api.rst b/docs/data-processing/postgresql/db-api.rst index 60245b10..8c508f5a 100644 --- a/docs/data-processing/postgresql/db-api.rst +++ b/docs/data-processing/postgresql/db-api.rst @@ -82,12 +82,10 @@ Cursor .. code-block:: python cursor = conn.cursor() - cursor.execute( - """ + cursor.execute(""" SELECT column1, column2 FROM tableA - """ - ) + """) for column1, column2 in cursor.fetchall(): print(column1, column2) diff --git a/docs/data-processing/postgresql/sqlalchemy.rst b/docs/data-processing/postgresql/sqlalchemy.rst index 29264c8c..0d381042 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/pyproject.toml b/docs/data-processing/serialisation-formats/pyproject.toml index 2d6e0964..55dbafca 100644 --- a/docs/data-processing/serialisation-formats/pyproject.toml +++ b/docs/data-processing/serialisation-formats/pyproject.toml @@ -1,7 +1,6 @@ # SPDX-FileCopyrightText: 2022 Veit Schiele # # SPDX-License-Identifier: BSD-3-Clause - [tool.black] line-length = 79 @@ -14,6 +13,5 @@ lines_between_types = 1 multi_line_output = 3 not_skip = "__init__.py" use_parentheses = true - known_first_party = "jupyter-tutorial" known_third_party = [ "mpi4py", "numpy", "requests" ] diff --git a/docs/data-processing/serialisation-formats/toml/index.rst b/docs/data-processing/serialisation-formats/toml/index.rst index 01d7d5a1..2f198f4c 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/data-processing/serialisation-formats/toml/pyproject.toml b/docs/data-processing/serialisation-formats/toml/pyproject.toml index 732e8efc..7812d682 100644 --- a/docs/data-processing/serialisation-formats/toml/pyproject.toml +++ b/docs/data-processing/serialisation-formats/toml/pyproject.toml @@ -1,7 +1,6 @@ # SPDX-FileCopyrightText: 2022 Veit Schiele # # SPDX-License-Identifier: BSD-3-Clause - [tool.black] line-length = 79 @@ -14,6 +13,5 @@ lines_between_types = 1 multi_line_output = 3 not_skip = "__init__.py" use_parentheses = true - known_first_party = [ "MY_FIRST_MODULE", "MY_SECOND_MODULE" ] known_third_party = [ "mpi4py", "numpy", "requests" ] diff --git a/docs/performance/index.rst b/docs/performance/index.rst index 63c2509a..b2ba3394 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/pyproject.toml b/pyproject.toml index 7f659f75..007c52d8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,6 @@ # SPDX-FileCopyrightText: 2020 Veit Schiele # # SPDX-License-Identifier: BSD-3-Clause - [project] name = "python4datascience" version = "24.2.0" @@ -22,10 +21,9 @@ classifiers = [ "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", ] -dependencies = [ ] - +dependencies = [] urls."Bug Tracker" = "https://github.com/cusyio/Python4DataScience/issues" -urls."Homepage" = "https://github.com/cusyio/Python4DataScience/" +urls.Homepage = "https://github.com/cusyio/Python4DataScience/" [dependency-groups] dev = [ @@ -52,7 +50,7 @@ docs = [ ] [tool.setuptools] -packages = [ ] +packages = [] [tool.black] line-length = 79 @@ -66,7 +64,6 @@ lines_between_types = 1 multi_line_output = 3 not_skip = "__init__.py" use_parentheses = true - known_first_party = "Python4DataScience" known_third_party = [ "Cython", @@ -84,5 +81,8 @@ known_third_party = [ ] [tool.codespell] -skip = "*.csv, *.html, *.pdf, *.rst, *.ipynb, ./docs/_build/*, */books.json, */books.txt, ./styles/*, ./Python4DataScience.egg-info/*" +skip = """\ + *.csv, *.html, *.pdf, *.rst, *.ipynb, ./docs/_build/*, */books.json, */books.txt, ./styles/*, \ + ./Python4DataScience.egg-info/*\ + """ ignore-words-list = "comit"