Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: clean up types, address name overwrite #225

Draft
wants to merge 5 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
strategy:
max-parallel: 2
matrix:
python-version: [ 3.7, 3.8, 3.9, "3.10" ]
python-version: [ 3.8, 3.9, "3.10", "3.11" ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Build Tools
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ jobs:
strategy:
max-parallel: 2
matrix:
python-version: [ 3.8, 3.9, "3.10" ]
python-version: [ 3.8, 3.9, "3.10", "3.11" ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install System Dependencies
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OVOS-utils

collection of simple utilities for use across the mycroft ecosystem
A collection of simple utilities for use across the OpenVoiceOS ecosystem.

## Install

Expand Down
12 changes: 6 additions & 6 deletions ovos_utils/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ class LOG:
formatter = logging.Formatter(fmt, datefmt)
max_bytes = 50000000
backup_count = 3
name = os.getenv("OVOS_DEFAULT_LOG_NAME") or 'OVOS'
name = os.getenv("OVOS_DEFAULT_LOG_NAME") or "OVOS"
level = os.getenv("OVOS_DEFAULT_LOG_LEVEL") or "INFO"
diagnostic_mode = False
_loggers = {}

@classmethod
def __init__(cls, name='OVOS'):
def __init__(cls, name=name):
cls.name = name

@classmethod
Expand Down Expand Up @@ -226,9 +226,9 @@ def init_service_logger(service_name):

def log_deprecation(log_message: str = "DEPRECATED",
deprecation_version: str = "Unknown",
func_name: str = None,
func_module: str = None,
excluded_package_refs: List[str] = None):
func_name: str = "",
func_module: str = "",
excluded_package_refs: List[str] = [""]):
"""
Log a deprecation warning with information for the call outside the module
that is generating the warning
Expand Down Expand Up @@ -354,6 +354,6 @@ def get_available_logs(directories: Optional[List[str]] = None) -> List[str]:
Returns:
list of log files
"""
directories = directories or get_log_paths()
directories = directories or list(get_log_paths())
return [Path(f).stem for path in directories
for f in os.listdir(path) if Path(f).suffix == ".log"]
Loading