Add Sonar (#14)

* Add Sonar

* Fix code smells
This commit is contained in:
2022-07-10 17:27:44 +01:00
committed by GitHub
parent b75300de8e
commit 4e5a200539
11 changed files with 35 additions and 18 deletions

View File

@ -2,10 +2,11 @@
"""MODULE: Provides functions for preparing, then printing, retrieved data."""
from typing import Union
from tabulate import tabulate
def generate_prefix_string(prefixes: list) -> str:
def generate_prefix_string(prefixes: list) -> Union[str, None]:
"""Generate a string that spilts prefixes into rows of 4."""
num_per_row = 4
try: