-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from mhawryluk/@gregori0o/refactor
Refactor
- Loading branch information
Showing
88 changed files
with
3,072 additions
and
1,998 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
repos: | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
name: isort (python) | ||
args: | ||
- "--profile=black" | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 22.10.0 | ||
hooks: | ||
- id: black | ||
args: | ||
- --line-length=88 | ||
- --include='\.pyi?$' | ||
|
||
- repo: https://github.com/pycqa/flake8 | ||
rev: 5.0.4 | ||
hooks: | ||
- id: flake8 | ||
args: | ||
- "--max-line-length=88" | ||
- "--max-complexity=18" | ||
- "--select=B,C,E,F,W,T4,B9,c90" | ||
- "--ignore=E203,E266,E501,W503,F403,F401,E402" | ||
|
||
default_language_version: | ||
python: python3.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,32 @@ | ||
cycler==0.11.0 | ||
dnspython==2.2.1 | ||
fonttools==4.32.0 | ||
kiwisolver==1.4.2 | ||
matplotlib==3.5.1 | ||
networkx==2.8.7 | ||
numpy==1.22.3 | ||
fonttools==4.38.0 | ||
kiwisolver==1.4.4 | ||
matplotlib==3.6.2 | ||
networkx==2.8.8 | ||
numpy==1.23.4 | ||
packaging==21.3 | ||
pandas==1.4.2 | ||
Pillow==9.1.0 | ||
plotly==5.10.0 | ||
psutil==5.9.0 | ||
pymongo==4.1.1 | ||
pyparsing==3.0.8 | ||
PyQt5==5.15.6 | ||
pandas==1.5.1 | ||
Pillow==9.3.0 | ||
plotly==5.11.0 | ||
psutil==5.9.4 | ||
pymongo==4.3.2 | ||
pyparsing==3.0.9 | ||
PyQt5==5.15.7 | ||
PyQt5-Qt5==5.15.2 | ||
PyQt5-sip==12.11.0 | ||
PyQt5-stubs==5.15.2.0 | ||
PyQt5-stubs==5.15.6.0 | ||
PyQtWebEngine==5.15.6 | ||
PyQtWebEngine-Qt5==5.15.2 | ||
python-dateutil==2.8.2 | ||
pytz==2022.1 | ||
pytz==2022.6 | ||
six==1.16.0 | ||
joblib~=1.1.0 | ||
joblib==1.2.0 | ||
pygraphviz~=1.10 | ||
QGraphViz~=0.0.55 | ||
pip~=22.0.4 | ||
wheel~=0.37.1 | ||
setuptools~=60.2.0 | ||
pip==22.3.1 | ||
wheel==0.38.4 | ||
setuptools==65.5.1 | ||
graphviz~=0.20.1 | ||
scipy==1.9.3 | ||
pre-commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
from .utils import get_samples, check_numeric, get_threads_count | ||
from .algorithm import Algorithm | ||
from .utils import check_numeric, get_samples, get_threads_count |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from abc import abstractmethod | ||
from typing import List | ||
|
||
|
||
class Algorithm: | ||
""" | ||
Abstract class of algorithm | ||
""" | ||
|
||
@abstractmethod | ||
def run(self, with_steps: bool): | ||
""" | ||
Run algorithm and return result for class AlgorithmResultsWidget | ||
If with_steps is true, saves steps of algorithm creation | ||
""" | ||
raise NotImplementedError | ||
|
||
@abstractmethod | ||
def get_steps(self) -> List: | ||
""" | ||
Return list of steps for visualization by AlgorithmStepsVisualization | ||
""" | ||
raise NotImplementedError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.