-
Notifications
You must be signed in to change notification settings - Fork 2
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 #49 from MolarVerse/feature/combine_cli
Feature/combine cli
- Loading branch information
Showing
16 changed files
with
889 additions
and
486 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 |
---|---|---|
@@ -1,27 +1,11 @@ | ||
paths: | ||
- PQAnalysis | ||
#badge: docs | ||
#exclude: .*/test # regex | ||
exclude: ./tests # regex | ||
verbose: 2 # int (0-3) | ||
skip_magic: True | ||
skip_magic: False | ||
skip_file_doc: True | ||
skip_init: True | ||
skip_init: False | ||
skip_class_def: False | ||
skip_private: True | ||
skip_private: False | ||
follow_links: True | ||
#ignore_names_file: .*/test # regex | ||
#fail_under: 90 | ||
percentage_only: False | ||
#ignore_patterns: # Dict with key/value pairs of file-pattern/node-pattern | ||
# .*: method_to_ignore_in_all_files | ||
# FileWhereWeWantToIgnoreAllSpecialMethods: "__.+__" | ||
# SomeFile: | ||
# - method_to_ignore1 | ||
# - method_to_ignore2 | ||
# - method_to_ignore3 | ||
# a_very_important_view_file: | ||
# - "^get$" | ||
# - "^set$" | ||
# - "^post$" | ||
# detect_.*: | ||
# - "get_val.*" | ||
percentage_only: False |
This file was deleted.
Oops, something went wrong.
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,42 @@ | ||
""" | ||
This module contains the abstract base class for all the CLI classes. | ||
""" | ||
|
||
from abc import ABCMeta, abstractmethod | ||
|
||
|
||
class CLIBase(metaclass=ABCMeta): | ||
""" | ||
Abstract base class for all the CLI classes. | ||
""" | ||
|
||
@classmethod | ||
@abstractmethod | ||
def program_name(cls) -> str: | ||
""" | ||
Return the name of the program. | ||
Returns | ||
------- | ||
str | ||
The name of the program. | ||
""" | ||
|
||
@classmethod | ||
@abstractmethod | ||
def add_arguments(cls, parser): | ||
""" | ||
Add the arguments to the parser. | ||
Parameters | ||
---------- | ||
parser : _type_ | ||
_description_ | ||
""" | ||
|
||
@classmethod | ||
@abstractmethod | ||
def run(cls, args): | ||
""" | ||
Run the CLI. | ||
""" |
Oops, something went wrong.