Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
hf-kklein committed Feb 6, 2024
1 parent 263b107 commit eda0239
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ebdtable2graph/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
contains the conversion logic
"""

from ebdtable2graph.graph_conversion import convert_table_to_digraph, convert_table_to_graph
from ebdtable2graph.graphviz import convert_dot_to_svg_kroki, convert_graph_to_dot
from ebdtable2graph.plantuml import convert_graph_to_plantuml, convert_plantuml_to_svg_kroki
1 change: 1 addition & 0 deletions src/ebdtable2graph/graph_conversion.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module contains logic to convert EbdTable data to EbdGraph data.
"""

from typing import Dict, List, Optional

from networkx import DiGraph # type:ignore[import]
Expand Down
1 change: 1 addition & 0 deletions src/ebdtable2graph/graph_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Some of these functions may store some information in the "attribute dictionaries" of the DiGraph nodes
(for later use in the conversion logic).
"""

from typing import List, Tuple

from networkx import DiGraph, all_simple_paths # type:ignore[import]
Expand Down
1 change: 1 addition & 0 deletions src/ebdtable2graph/graphviz.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module contains logic to convert EbdGraph data to dot code (Graphviz) and further to parse this code to SVG images.
"""

from typing import List, Optional
from xml.sax.saxutils import escape

Expand Down
1 change: 1 addition & 0 deletions src/ebdtable2graph/kroki.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
we use kroki.io to convert dot code to SVG
"""

from typing import Protocol

import requests
Expand Down
1 change: 1 addition & 0 deletions src/ebdtable2graph/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
1. a representation of the scraped EBD tables
2. the data model for the result of the conversion
"""

from ebdtable2graph.models.ebd_graph import (
DecisionNode,
EbdGraph,
Expand Down
1 change: 1 addition & 0 deletions src/ebdtable2graph/models/ebd_graph.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
contains the graph side of things
"""

from abc import ABC, abstractmethod
from typing import List, Optional

Expand Down
1 change: 1 addition & 0 deletions src/ebdtable2graph/models/ebd_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
The central class in this module is the EbdTable.
An EbdTable is the EDI@Energy raw representation of an "Entscheidungsbaum".
"""

from typing import List, Optional

import attrs
Expand Down
1 change: 1 addition & 0 deletions src/ebdtable2graph/models/errors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Specific error classes for errors that may occur in the data.
Using these exceptions allows to catch/filter more fine-grained.
"""

from typing import Optional

from ebdtable2graph.models import DecisionNode, EbdTableRow, EbdTableSubRow, OutcomeNode
Expand Down
1 change: 1 addition & 0 deletions src/ebdtable2graph/plantuml.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module contains logic to convert EbdGraph data to plantuml code and further to parse this code to SVG images.
"""

from collections import namedtuple

import requests # pylint: disable=import-error
Expand Down
1 change: 1 addition & 0 deletions unittests/e0266.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Contains the raw data for E_0266 in the form of an EbdTable.
"""

from ebdtable2graph.models import EbdCheckResult, EbdTable, EbdTableMetaData, EbdTableRow, EbdTableSubRow
from ebdtable2graph.models.ebd_table import MultiStepInstruction

Expand Down
1 change: 1 addition & 0 deletions unittests/e0401.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Contains the raw data for E_0401 in the form of an EbdTable.
"""

from ebdtable2graph.models import EbdCheckResult, EbdTable, EbdTableMetaData, EbdTableRow, EbdTableSubRow

e_0401 = EbdTable(
Expand Down
1 change: 1 addition & 0 deletions unittests/e0404.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Contains the raw data for E_0404 in the form of an EbdTable.
"""

from ebdtable2graph.models import EbdCheckResult, EbdTable, EbdTableMetaData, EbdTableRow, EbdTableSubRow

e_0404 = EbdTable(
Expand Down
1 change: 1 addition & 0 deletions unittests/e0454.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Contains the raw data for E_0454 in the form of an EbdTable.
"""

from ebdtable2graph.models import EbdCheckResult, EbdTable, EbdTableMetaData, EbdTableRow, EbdTableSubRow

table_e0454 = EbdTable(
Expand Down
1 change: 1 addition & 0 deletions unittests/e0459.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Contains the raw data for E_0459 in the form of an EbdTable.
"""

from ebdtable2graph.models import EbdCheckResult, EbdTable, EbdTableMetaData, EbdTableRow, EbdTableSubRow

table_e0459 = EbdTable(
Expand Down
1 change: 1 addition & 0 deletions unittests/e0462.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Contains the raw data for E_0401 in the form of an EbdTable.
"""

from ebdtable2graph.models import EbdCheckResult, EbdTable, EbdTableMetaData, EbdTableRow, EbdTableSubRow

table_e0462 = EbdTable(
Expand Down
1 change: 1 addition & 0 deletions unittests/e0529.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Contains the raw data for E_0529 in the form of an EbdTable.
"""

from ebdtable2graph.models import EbdCheckResult, EbdTable, EbdTableMetaData, EbdTableRow, EbdTableSubRow

e_0529 = EbdTable(
Expand Down
1 change: 1 addition & 0 deletions unittests/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
this module contains ready-to-test examples from the EDI@Energy Documents
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
"""

from ebdtable2graph.models import EbdCheckResult, EbdTable, EbdTableMetaData, EbdTableRow, EbdTableSubRow

# todo @ konstantin
Expand Down

0 comments on commit eda0239

Please sign in to comment.