diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 383e65cd..7132295c 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 $(git ls-files '*.py') + pylint -d W1203 $(git ls-files '*.py') diff --git a/abcli/__init__.py b/abcli/__init__.py index 68ffd3ff..586c7018 100644 --- a/abcli/__init__.py +++ b/abcli/__init__.py @@ -5,7 +5,7 @@ NAME = "abcli" -VERSION = "7.2689.1" +VERSION = "7.2692.1" DESCRIPTION = "🚀 a language to speak AI." diff --git a/abcli/bash/list/__init__.py b/abcli/bash/list/__init__.py index 9986cac9..16094676 100644 --- a/abcli/bash/list/__init__.py +++ b/abcli/bash/list/__init__.py @@ -1 +1,3 @@ +"""list functions used in bash""" + NAME = "abcli.bash.list" diff --git a/abcli/bash/list/__main__.py b/abcli/bash/list/__main__.py index 8dd7b6e7..d7b8d08d 100644 --- a/abcli/bash/list/__main__.py +++ b/abcli/bash/list/__main__.py @@ -1,14 +1,16 @@ +"""list functions used in bash""" + import argparse -from . import * +from . import NAME -list_of_tasks = "in|intersect|item|len|nonempty|resize|sort" +LIST_OF_TASKS = "in|intersect|item|len|nonempty|resize|sort" parser = argparse.ArgumentParser(NAME) parser.add_argument( "task", type=str, - help=list_of_tasks, + help=LIST_OF_TASKS, ) parser.add_argument( "--count", @@ -55,7 +57,7 @@ else None ) -success = args.task in list_of_tasks.split("|") +success = args.task in LIST_OF_TASKS.split("|") if args.task == "in": print("True" if args.item in list_of_items else "False") elif args.task == "intersect": diff --git a/abcli/file/__init__.py b/abcli/file/__init__.py index 645dcc4f..cec54a16 100644 --- a/abcli/file/__init__.py +++ b/abcli/file/__init__.py @@ -1,5 +1,46 @@ +"""file interface""" + NAME = "abcli.file" -from .functions import * -from .load import * -from .save import * +# pylint: disable=wrong-import-position +from .functions import ( + absolute, + add_postfix, + add_prefix, + auxiliary, + copy, + create, + delete, + download, + exist, + extension, + list_of, + move, + name_and_extension, + name, + path, + relative, + set_extension, + size, +) +from .load import ( + load_geodataframe, + load_geojson, + load_image, + load_json, + load_text, + load_yaml, + load, +) +from .save import ( + prepare_for_saving, + save_csv, + save_fig, + save_geojson, + save_image, + save_json, + save_tensor, + save_text, + save_yaml, + save, +) diff --git a/abcli/file/__main__.py b/abcli/file/__main__.py index 2549267e..179ca11f 100644 --- a/abcli/file/__main__.py +++ b/abcli/file/__main__.py @@ -1,10 +1,11 @@ +"""file interface""" + import argparse -from . import * -from abcli import string -from abcli import logging -import logging +from abcli import string, NAME +from abcli.file import size +from abcli.logging import logger +from . import load_text, save_text -logger = logging.getLogger(__name__) parser = argparse.ArgumentParser(NAME) parser.add_argument(