Skip to content

Commit 34aae8d

Browse files
Bump black from 23.12.1 to 24.1.1 (#174)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: konstantin <konstantin.klein@hochfrequenz.de>
1 parent 36235d2 commit 34aae8d

19 files changed

+19
-1
lines changed

dev_requirements/requirements-formatting.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# pip-compile requirements-formatting.in
66
#
7-
black==23.12.1
7+
black==24.1.1
88
# via -r dev_requirements/requirements-formatting.in
99
click==8.1.3
1010
# via black

src/ebdtable2graph/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
contains the conversion logic
33
"""
4+
45
from ebdtable2graph.graph_conversion import convert_table_to_digraph, convert_table_to_graph
56
from ebdtable2graph.graphviz import convert_dot_to_svg_kroki, convert_graph_to_dot
67
from ebdtable2graph.plantuml import convert_graph_to_plantuml, convert_plantuml_to_svg_kroki

src/ebdtable2graph/graph_conversion.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This module contains logic to convert EbdTable data to EbdGraph data.
33
"""
4+
45
from typing import Dict, List, Optional
56

67
from networkx import DiGraph # type:ignore[import]

src/ebdtable2graph/graph_utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Some of these functions may store some information in the "attribute dictionaries" of the DiGraph nodes
44
(for later use in the conversion logic).
55
"""
6+
67
from typing import List, Tuple
78

89
from networkx import DiGraph, all_simple_paths # type:ignore[import]

src/ebdtable2graph/graphviz.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This module contains logic to convert EbdGraph data to dot code (Graphviz) and further to parse this code to SVG images.
33
"""
4+
45
from typing import List, Optional
56
from xml.sax.saxutils import escape
67

src/ebdtable2graph/kroki.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
we use kroki.io to convert dot code to SVG
33
"""
4+
45
from typing import Protocol
56

67
import requests

src/ebdtable2graph/models/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
1. a representation of the scraped EBD tables
44
2. the data model for the result of the conversion
55
"""
6+
67
from ebdtable2graph.models.ebd_graph import (
78
DecisionNode,
89
EbdGraph,

src/ebdtable2graph/models/ebd_graph.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
contains the graph side of things
33
"""
4+
45
from abc import ABC, abstractmethod
56
from typing import List, Optional
67

src/ebdtable2graph/models/ebd_table.py

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
The central class in this module is the EbdTable.
44
An EbdTable is the EDI@Energy raw representation of an "Entscheidungsbaum".
55
"""
6+
67
from typing import List, Optional
78

89
import attrs

src/ebdtable2graph/models/errors/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Specific error classes for errors that may occur in the data.
33
Using these exceptions allows to catch/filter more fine-grained.
44
"""
5+
56
from typing import Optional
67

78
from ebdtable2graph.models import DecisionNode, EbdTableRow, EbdTableSubRow, OutcomeNode

src/ebdtable2graph/plantuml.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
This module contains logic to convert EbdGraph data to plantuml code and further to parse this code to SVG images.
33
"""
4+
45
from collections import namedtuple
56

67
import requests # pylint: disable=import-error

unittests/e0266.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Contains the raw data for E_0266 in the form of an EbdTable.
33
"""
4+
45
from ebdtable2graph.models import EbdCheckResult, EbdTable, EbdTableMetaData, EbdTableRow, EbdTableSubRow
56
from ebdtable2graph.models.ebd_table import MultiStepInstruction
67

unittests/e0401.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Contains the raw data for E_0401 in the form of an EbdTable.
33
"""
4+
45
from ebdtable2graph.models import EbdCheckResult, EbdTable, EbdTableMetaData, EbdTableRow, EbdTableSubRow
56

67
e_0401 = EbdTable(

unittests/e0404.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Contains the raw data for E_0404 in the form of an EbdTable.
33
"""
4+
45
from ebdtable2graph.models import EbdCheckResult, EbdTable, EbdTableMetaData, EbdTableRow, EbdTableSubRow
56

67
e_0404 = EbdTable(

unittests/e0454.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Contains the raw data for E_0454 in the form of an EbdTable.
33
"""
4+
45
from ebdtable2graph.models import EbdCheckResult, EbdTable, EbdTableMetaData, EbdTableRow, EbdTableSubRow
56

67
table_e0454 = EbdTable(

unittests/e0459.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Contains the raw data for E_0459 in the form of an EbdTable.
33
"""
4+
45
from ebdtable2graph.models import EbdCheckResult, EbdTable, EbdTableMetaData, EbdTableRow, EbdTableSubRow
56

67
table_e0459 = EbdTable(

unittests/e0462.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Contains the raw data for E_0401 in the form of an EbdTable.
33
"""
4+
45
from ebdtable2graph.models import EbdCheckResult, EbdTable, EbdTableMetaData, EbdTableRow, EbdTableSubRow
56

67
table_e0462 = EbdTable(

unittests/e0529.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Contains the raw data for E_0529 in the form of an EbdTable.
33
"""
4+
45
from ebdtable2graph.models import EbdCheckResult, EbdTable, EbdTableMetaData, EbdTableRow, EbdTableSubRow
56

67
e_0529 = EbdTable(

unittests/examples.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
this module contains ready-to-test examples from the EDI@Energy Documents
33
https://www.edi-energy.de/index.php?id=38&tx_bdew_bdew%5Buid%5D=1486&tx_bdew_bdew%5Baction%5D=download&tx_bdew_bdew%5Bcontroller%5D=Dokument&cHash=6d81fa28a8c94fb46ebab5e0088d641e
44
"""
5+
56
from ebdtable2graph.models import EbdCheckResult, EbdTable, EbdTableMetaData, EbdTableRow, EbdTableSubRow
67

78
# todo @ konstantin

0 commit comments

Comments
 (0)