Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: format code with Autopep8 and isort #12

Merged
merged 2 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Graph/frame_graph.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""Frame contains Graph to visualize the algorithm"""
from typing import TYPE_CHECKING
from ..utils import CHECK_IMPORT_LATER

from ttkbootstrap import *

from ..utils import CHECK_IMPORT_LATER
from .edge import Edge
from .node import Node

Expand Down
1 change: 1 addition & 0 deletions src/Q_Learning/q_learning_ttk.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Visualize Q-learning process"""
import numpy as np
from numpy import matrix, zeros

from ..Graph import CWindow


Expand Down
5 changes: 3 additions & 2 deletions src/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"""Modules"""
from .Graph import CWindow, Edge, FrameGraph, Node
from .Q_Learning import GraphNetworkX, GraphNetworkXForQLearning
from .utils import (DEFAULT_EDGES_NETWORKX, HEIGHT_WINDOW, WIDTH_WINDOW, CHECK_IMPORT_LATER,
coordinate_list_random, coordinate_random, handle_edges_list)
from .utils import (CHECK_IMPORT_LATER, DEFAULT_EDGES_NETWORKX, HEIGHT_WINDOW,
WIDTH_WINDOW, coordinate_list_random, coordinate_random,
handle_edges_list)

__all__: list[str] = ["Edge", "FrameGraph", "Node", "CWindow", "coordinate_random", "coordinate_list_random",
"GraphNetworkX", "GraphNetworkXForQLearning", "WIDTH_WINDOW", "HEIGHT_WINDOW", "DEFAULT_EDGES_NETWORKX", "CHECK_IMPORT_LATER", "handle_edges_list"]
3 changes: 2 additions & 1 deletion src/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Modules"""
from .constants import DEFAULT_EDGES_NETWORKX, HEIGHT_WINDOW, WIDTH_WINDOW, CHECK_IMPORT_LATER
from .constants import (CHECK_IMPORT_LATER, DEFAULT_EDGES_NETWORKX,
HEIGHT_WINDOW, WIDTH_WINDOW)
from .coordinate import coordinate_list_random, coordinate_random
from .handle_edges_list import handle_edges_list

Expand Down
Loading