diff --git a/keymapper/dev/macros.py b/keymapper/dev/macros.py index 80e6f6e7..0f17587f 100644 --- a/keymapper/dev/macros.py +++ b/keymapper/dev/macros.py @@ -347,7 +347,7 @@ def _parse_recurse(macro, macro_instance=None, depth=0): # maybe this just applies a modifier for a certain amout of time. # and maybe it's a wait in repeat or something. Don't make it # fail here. - logger.warn(f'"{macro}" doesn\'t write any keys (using k)') + logger.warn('"%s" doesn\'t write any keys (using k)', macro) # available functions in the macro and the number of their # parameters diff --git a/keymapper/logger.py b/keymapper/logger.py index 85a356c6..1a3a77d8 100644 --- a/keymapper/logger.py +++ b/keymapper/logger.py @@ -132,7 +132,7 @@ def update_verbosity(debug): except Exception as error: # since this is optional, just skip all exceptions if not isinstance(error, ImportError): - logger.debug(f'Cannot use rich.traceback: {error}') + logger.debug('Cannot use rich.traceback: %s', error) else: logger.setLevel(logging.INFO) diff --git a/readme/pylint.svg b/readme/pylint.svg index bde3a939..2eb20879 100644 --- a/readme/pylint.svg +++ b/readme/pylint.svg @@ -1,23 +1,23 @@ - + - + - - + + pylint pylint - 9.76 - 9.76 + 9.7 + 9.7 \ No newline at end of file diff --git a/scripts/badges.sh b/scripts/badges.sh index 1f78938e..f2e46fcc 100755 --- a/scripts/badges.sh +++ b/scripts/badges.sh @@ -1,7 +1,9 @@ #!/usr/bin/env bash +# sudo pip install git+https://github.com/jongracecox/anybadge +# sudo pip install git+https://github.com/dbrgn/coverage-badge + coverage_badge() { - # https://github.com/dbrgn/coverage-badge coverage run tests/test.py coverage combine python3 -m coverage_badge > readme/coverage.svg @@ -10,7 +12,6 @@ coverage_badge() { } pylint_badge() { - # https://github.com/jongracecox/anybadge pylint_output=$(pylint keymapper --extension-pkg-whitelist=evdev) rating=$(echo $pylint_output | grep -Po "rated at .+?/" | grep -Po "\d+.\d+") rm readme/pylint.svg