diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 41cea0db..0e536757 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -20,4 +20,4 @@ jobs: pip install pylint - name: Analysing the code with pylint run: | - pylint -d W1203,C0103,C0114,C0115 $(git ls-files '*.py') + pylint -d W1203,C0103,C0114,C0115,C0116 $(git ls-files '*.py') diff --git a/abcli/__init__.py b/abcli/__init__.py index 8e83e8e4..91b4c7c8 100644 --- a/abcli/__init__.py +++ b/abcli/__init__.py @@ -5,7 +5,7 @@ NAME = "abcli" -VERSION = "7.2695.1" +VERSION = "7.2697.1" DESCRIPTION = "🚀 a language to speak AI." diff --git a/abcli/bash/help.py b/abcli/bash/help.py index 94e35819..017fde29 100644 --- a/abcli/bash/help.py +++ b/abcli/bash/help.py @@ -1,6 +1,3 @@ -"""used by "abcli help" -""" - from functools import reduce from abcli import file diff --git a/abcli/bash/list/__init__.py b/abcli/bash/list/__init__.py index 16094676..9986cac9 100644 --- a/abcli/bash/list/__init__.py +++ b/abcli/bash/list/__init__.py @@ -1,3 +1 @@ -"""list functions used in bash""" - NAME = "abcli.bash.list" diff --git a/abcli/bash/list/__main__.py b/abcli/bash/list/__main__.py index afefedc4..4e20cae6 100644 --- a/abcli/bash/list/__main__.py +++ b/abcli/bash/list/__main__.py @@ -1,5 +1,3 @@ -"""list functions used in bash""" - import argparse from . import NAME diff --git a/abcli/file/__init__.py b/abcli/file/__init__.py index cec54a16..3039cbe9 100644 --- a/abcli/file/__init__.py +++ b/abcli/file/__init__.py @@ -1,5 +1,3 @@ -"""file interface""" - NAME = "abcli.file" # pylint: disable=wrong-import-position diff --git a/abcli/file/__main__.py b/abcli/file/__main__.py index 179ca11f..03e3f4ee 100644 --- a/abcli/file/__main__.py +++ b/abcli/file/__main__.py @@ -1,5 +1,3 @@ -"""file interface""" - import argparse from abcli import string, NAME from abcli.file import size diff --git a/abcli/file/classes.py b/abcli/file/classes.py index 52e29304..faa42252 100644 --- a/abcli/file/classes.py +++ b/abcli/file/classes.py @@ -1,6 +1,7 @@ import datetime import json + # https://gist.github.com/jsbueno/9b2ea63fb16b84658281ec29b375283e class JsonEncoder(json.JSONEncoder): def default(self, obj): diff --git a/abcli/timer.py b/abcli/timer.py index 716db061..b5027b91 100644 --- a/abcli/timer.py +++ b/abcli/timer.py @@ -1,9 +1,6 @@ import time from abcli import string -from abcli import logging -import logging - -logger = logging.getLogger(__name__) +from abcli.logging import logger class Timer(object): @@ -25,31 +22,37 @@ def signature(self): return "{}:{}/{}~{}".format( self.name, - "?" - if since is None - else string.pretty_duration( - since, - largest=True, - short=True, - ) - if since < self.period / 2 - else string.pretty_duration( - -(self.period - since), - largest=True, - short=True, + ( + "?" + if since is None + else ( + string.pretty_duration( + since, + largest=True, + short=True, + ) + if since < self.period / 2 + else string.pretty_duration( + -(self.period - since), + largest=True, + short=True, + ) + ) ), string.pretty_duration( self.period, largest=True, short=True, ), - string.pretty_duration( - (current_time - self.start_time) / self.count, - largest=True, - short=True, - ) - if self.count - else "?", + ( + string.pretty_duration( + (current_time - self.start_time) / self.count, + largest=True, + short=True, + ) + if self.count + else "?" + ), ) def tick(self, wait=False):