~rootmos/scripts

fa7a6fc3df4f726c4c7b081e5864e8b4f99b437d — Gustav Behm a month ago 4fc2584
Fix is-clean' setup_logger function and assert that it's added to the build
2 files changed, 7 insertions(+), 1 deletions(-)

M .build.yml
M is-clean
M .build.yml => .build.yml +3 -0
@@ 4,6 4,9 @@ packages:
  - shellcheck
  - py3-pylint
tasks:
  - readme: |
      cd scripts
      ./is-clean -m README.md
  - check: |
      cd scripts
      ./check

M is-clean => is-clean +4 -1
@@ 64,7 64,10 @@ def is_clean(path, make=False, root=None, target=None, show_diff=False):

def setup_logger(level, name=None):
    level = level.upper()
    l = logging.getLogger(name=name)
    if isinstance(name, str):
        l = logging.getLogger(name=name)
    else:
        l = name
    l.setLevel(level)

    handler = logging.StreamHandler()