-
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 #2 from sevenstarknight/dev/updates
Update all the tests
- Loading branch information
Showing
90 changed files
with
544 additions
and
574 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,26 @@ | ||
{ | ||
"recommendations": [ | ||
"mechatroner.rainbow-csv", | ||
"njpwerner.autodocstring", | ||
"aaron-bond.better-comments", | ||
"grapecity.gc-excelviewer", | ||
"mhutchie.git-graph", | ||
"donjayamanne.githistory", | ||
"github.vscode-github-actions", | ||
"ms-python.isort", | ||
"ms-toolsai.jupyter", | ||
"ms-toolsai.vscode-jupyter-cell-tags", | ||
"ms-toolsai.jupyter-keymap", | ||
"ms-toolsai.jupyter-renderers", | ||
"ms-toolsai.vscode-jupyter-slideshow", | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"ms-python.debugpy", | ||
"gruntfuggly.todo-tree" | ||
|
||
], | ||
// List of extensions recommended by VS Code that should not be recommended for users of this workspace. | ||
"unwantedRecommendations": [ | ||
|
||
] | ||
} |
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,61 +1,70 @@ | ||
{ | ||
"python.defaultInterpreterPath": "./venv/Scripts/python.exe", | ||
"python.testing.unittestArgs": [ | ||
"-v", | ||
"-s", | ||
"./tests", | ||
"-p", | ||
"test_*.py" | ||
"python.defaultInterpreterPath": "./venv/Scripts/python.exe", | ||
"python.analysis.extraPaths": ["."], | ||
"python.testing.unittestArgs": [ | ||
"-v", | ||
"-t", | ||
".", | ||
"-s", | ||
"./unittests", | ||
"-p", | ||
"test_*.py" | ||
], | ||
"python.testing.pytestEnabled": false, | ||
"python.testing.unittestEnabled": true, | ||
"python.terminal.activateEnvironment": true, | ||
"terminal.integrated.env.windows": { "PYTHONPATH": "${workspaceFolder}"}, | ||
"better-comments.tags": [ | ||
{ | ||
"tag": "!", | ||
"color": "#FF2D00", | ||
"strikethrough": false, | ||
"underline": false, | ||
"backgroundColor": "transparent", | ||
"bold": false, | ||
"italic": false | ||
}, | ||
{ | ||
"tag": "?", | ||
"color": "#3498DB", | ||
"strikethrough": false, | ||
"underline": false, | ||
"backgroundColor": "transparent", | ||
"bold": false, | ||
"italic": false | ||
}, | ||
{ | ||
"tag": "//", | ||
"color": "#474747", | ||
"strikethrough": true, | ||
"underline": false, | ||
"backgroundColor": "transparent", | ||
"bold": false, | ||
"italic": false | ||
}, | ||
{ | ||
"tag": "todo", | ||
"color": "#FF8C00", | ||
"strikethrough": false, | ||
"underline": false, | ||
"backgroundColor": "transparent", | ||
"bold": false, | ||
"italic": false | ||
}, | ||
{ | ||
"tag": "*", | ||
"color": "#98C379", | ||
"strikethrough": false, | ||
"underline": false, | ||
"backgroundColor": "transparent", | ||
"bold": false, | ||
"italic": false | ||
} | ||
], | ||
"python.testing.pytestEnabled": false, | ||
"python.linting.pylintEnabled": true, | ||
"python.testing.unittestEnabled": true, | ||
"python.linting.enabled": false, | ||
"better-comments.tags": [ | ||
{ | ||
"tag": "!", | ||
"color": "#FF2D00", | ||
"strikethrough": false, | ||
"underline": false, | ||
"backgroundColor": "transparent", | ||
"bold": false, | ||
"italic": false | ||
}, | ||
{ | ||
"tag": "?", | ||
"color": "#3498DB", | ||
"strikethrough": false, | ||
"underline": false, | ||
"backgroundColor": "transparent", | ||
"bold": false, | ||
"italic": false | ||
}, | ||
{ | ||
"tag": "//", | ||
"color": "#474747", | ||
"strikethrough": true, | ||
"underline": false, | ||
"backgroundColor": "transparent", | ||
"bold": false, | ||
"italic": false | ||
}, | ||
{ | ||
"tag": "todo", | ||
"color": "#FF8C00", | ||
"strikethrough": false, | ||
"underline": false, | ||
"backgroundColor": "transparent", | ||
"bold": false, | ||
"italic": false | ||
}, | ||
{ | ||
"tag": "*", | ||
"color": "#98C379", | ||
"strikethrough": false, | ||
"underline": false, | ||
"backgroundColor": "transparent", | ||
"bold": false, | ||
"italic": false | ||
} | ||
] | ||
} | ||
"[python]": { | ||
"editor.defaultFormatter": "ms-python.black-formatter" | ||
}, | ||
"python.linting.pylintEnabled": false, | ||
"python.linting.pylintArgs": ["--disable=C0111"], | ||
"python.formatting.provider": "none" | ||
} |
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
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,34 @@ | ||
from loguru import logger | ||
import sys | ||
|
||
class SetLevel(): | ||
"""Set the levels for operations | ||
""" | ||
def __init__(self, level:str): | ||
"""LOGURU initialization for set levels | ||
Args: | ||
level (str): what levels? | ||
""" | ||
self.level = level.upper() | ||
if self.validateLogLevel(): | ||
self.setLevel() | ||
|
||
def setLevel(self): | ||
"""Set the levels | ||
""" | ||
logger.remove() #removes configuration for the default handler "0" is the default ID number | ||
logger.add(sys.stderr, level=self.level) #only records logs with a severity of Warning and greater | ||
|
||
def validateLogLevel(self, correct:bool=True) -> bool: | ||
"""Validate the logs | ||
Args: | ||
correct (bool, optional): yes valid. Defaults to True. | ||
Returns: | ||
bool: correct? | ||
""" | ||
if self.level not in ["DEBUG", "TRACE", "INFO", "SUCCESS", "WARNING", "ERROR", "CRITICAL"]: | ||
correct = False | ||
return correct |
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,3 +1,4 @@ | ||
# STDLIB modules | ||
from dataclasses import dataclass | ||
|
||
|
||
|
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,3 +1,4 @@ | ||
# STDLIB modules | ||
import math | ||
from dataclasses import dataclass | ||
|
||
|
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
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,3 +1,4 @@ | ||
# STDLIB modules | ||
from dataclasses import dataclass | ||
|
||
|
||
|
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
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
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
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
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
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
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,3 +1,4 @@ | ||
# THIRDPARTY modules | ||
import numpy as np | ||
|
||
|
||
|
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
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
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
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,3 +1,4 @@ | ||
# STDLIB modules | ||
from enum import Enum | ||
|
||
|
||
|
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
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,3 +1,4 @@ | ||
# STDLIB modules | ||
from enum import Enum | ||
|
||
|
||
|
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.