This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
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.
Enhance The Quality Of CodeBase (#12)
- Loading branch information
Showing
6 changed files
with
29 additions
and
24 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 |
---|---|---|
|
@@ -33,4 +33,5 @@ jobs: | |
- name: Run pytest | ||
run: | | ||
pytest tests | ||
coverage run -m pytest | ||
coverage report |
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,3 @@ | ||
pytest | ||
pytest-cov | ||
coverage | ||
mypy |
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,16 +1,16 @@ | ||
from . import commands | ||
|
||
def handle_quit_event(): | ||
def handle_quit_event() -> None: | ||
commands.quit_appplication() | ||
|
||
def handle_help_event(): | ||
def handle_help_event() -> None: | ||
commands.print_help_message() | ||
|
||
def handle_write_password_event(): | ||
def handle_write_password_event() -> None: | ||
commands.write_password() | ||
|
||
def handle_read_password_event(): | ||
def handle_read_password_event() -> None: | ||
commands.read_password() | ||
|
||
def handle_info_event(): | ||
def handle_info_event() -> None: | ||
commands.read_info() |
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,20 +1,21 @@ | ||
"""CHANGES IN THIS FILE CAN LEAD TO ADVERSE EFFECTS AND CAN EVEN CRASH THE APPLICATION""" | ||
|
||
import os | ||
from typing import List | ||
|
||
# App | ||
NAME = "Smart Manager" | ||
VERSION = "0.1.0-alpha" | ||
WEBSITE = "https://jeeldobariya38.github.io/Smart-Manager/" | ||
REPO = "https://github.com/JeelDobariya38/Smart-Manager" | ||
NAME: str = "Smart Manager" | ||
VERSION: str = "0.1.0-alpha" | ||
WEBSITE: str = "https://jeeldobariya38.github.io/Smart-Manager/" | ||
REPO: str = "https://github.com/JeelDobariya38/Smart-Manager" | ||
|
||
# Paths (all path are relative to this file) | ||
__DATADIR = ["..", "..", "..", "data"] | ||
__RESOURCEDIR = ["..", "..", "..", "resource"] | ||
__DATADIR: list[str] = ["..", "..", "..", "data"] | ||
__RESOURCEDIR: list[str] = ["..", "..", "..", "resource"] | ||
|
||
# FilePath (Do Not Change this session, instead change above "Paths" session) | ||
DATADIR_PATH = os.path.join(__file__, os.path.sep.join(__DATADIR)) + os.path.sep | ||
RESOURCEDIR_PATH = os.path.join(__file__, os.path.sep.join(__RESOURCEDIR)) + os.path.sep | ||
DATADIR_PATH: str = os.path.join(__file__, os.path.sep.join(__DATADIR)) + os.path.sep | ||
RESOURCEDIR_PATH: str = os.path.join(__file__, os.path.sep.join(__RESOURCEDIR)) + os.path.sep | ||
|
||
# App Configuration | ||
DATA_SEPARATOR = " -> " | ||
DATA_SEPARATOR: str = " -> " |