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()