Skip to content

Commit 9b7d3c3

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1e7f0fa commit 9b7d3c3

8 files changed

Lines changed: 8 additions & 19 deletions

File tree

docs/data-processing/apis/fastapi/example.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ Erstellt die Datei :file:`main.py` mit diesem Inhalt:
1616
1717
from fastapi import FastAPI
1818
19-
2019
app = FastAPI()
2120
2221
@@ -81,7 +80,6 @@ zu erhalten:
8180
8281
from fastapi import FastAPI
8382
84-
8583
app = FastAPI()
8684
8785

docs/data-processing/postgresql/db-api.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,10 @@ Cursor
8282
.. code-block:: python
8383
8484
cursor = conn.cursor()
85-
cursor.execute(
86-
"""
85+
cursor.execute("""
8786
SELECT column1, column2
8887
FROM tableA
89-
"""
90-
)
88+
""")
9189
for column1, column2 in cursor.fetchall():
9290
print(column1, column2)
9391

docs/data-processing/postgresql/sqlalchemy.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ Datenbankverbindung
4444
4545
from sqlalchemy import create_engine
4646
47-
4847
engine = create_engine("postgresql:///example", echo=True)
4948
5049
Datenmodell
@@ -56,7 +55,6 @@ Datenmodell
5655
from sqlalchemy.ext.declarative import declarative_base
5756
from sqlalchemy.orm import relationship
5857
59-
6058
Base = declarative_base()
6159
6260

docs/data-processing/serialisation-formats/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@ lines_between_types = 1
1414
multi_line_output = 3
1515
not_skip = "__init__.py"
1616
use_parentheses = true
17-
1817
known_first_party = "jupyter-tutorial"
1918
known_third_party = [ "mpi4py", "numpy", "requests" ]

docs/data-processing/serialisation-formats/toml/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ Beispiel
6666
6767
import toml
6868
69-
7069
config = toml.load("pyproject.toml")
7170
7271
.. seealso::

docs/data-processing/serialisation-formats/toml/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@ lines_between_types = 1
1414
multi_line_output = 3
1515
not_skip = "__init__.py"
1616
use_parentheses = true
17-
1817
known_first_party = [ "MY_FIRST_MODULE", "MY_SECOND_MODULE" ]
1918
known_third_party = [ "mpi4py", "numpy", "requests" ]

docs/performance/index.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ Beispieldaten können wir uns erstellen mit:
5555
5656
from sklearn.datasets import make_blobs
5757
58-
5958
points, labels_true = make_blobs(
6059
n_samples=1000, centers=3, random_state=0, cluster_std=0.60
6160
)
@@ -128,7 +127,6 @@ k-Means-Algorithmus gibt es sogar gleich zwei Implementierungen:
128127
129128
from sklearn.cluster import KMeans
130129
131-
132130
KMeans(10).fit_predict(points)
133131
134132
* `dask_ml.cluster.KMeans
@@ -138,7 +136,6 @@ k-Means-Algorithmus gibt es sogar gleich zwei Implementierungen:
138136
139137
from dask_ml.cluster import KMeans
140138
141-
142139
KMeans(10).fit(points).predict(points)
143140
144141
Gegen diese bestehenden Lösungen könnte bestenfalls sprechen, dass sie einen

pyproject.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ classifiers = [
2222
"Programming Language :: Python :: 3.13",
2323
"Programming Language :: Python :: 3.14",
2424
]
25-
dependencies = [ ]
26-
25+
dependencies = []
2726
urls."Bug Tracker" = "https://github.com/cusyio/Python4DataScience/issues"
2827
urls."Homepage" = "https://github.com/cusyio/Python4DataScience/"
2928

@@ -52,7 +51,7 @@ docs = [
5251
]
5352

5453
[tool.setuptools]
55-
packages = [ ]
54+
packages = []
5655

5756
[tool.black]
5857
line-length = 79
@@ -66,7 +65,6 @@ lines_between_types = 1
6665
multi_line_output = 3
6766
not_skip = "__init__.py"
6867
use_parentheses = true
69-
7068
known_first_party = "Python4DataScience"
7169
known_third_party = [
7270
"Cython",
@@ -84,5 +82,8 @@ known_third_party = [
8482
]
8583

8684
[tool.codespell]
87-
skip = "*.csv, *.html, *.pdf, *.rst, *.ipynb, ./docs/_build/*, */books.json, */books.txt, ./styles/*, ./Python4DataScience.egg-info/*"
85+
skip = """\
86+
*.csv, *.html, *.pdf, *.rst, *.ipynb, ./docs/_build/*, */books.json, */books.txt, ./styles/*, \
87+
./Python4DataScience.egg-info/*\
88+
"""
8889
ignore-words-list = "comit"

0 commit comments

Comments
 (0)