Skip to content

Commit

Permalink
lint - kamangir/bolt#1234
Browse files Browse the repository at this point in the history
  • Loading branch information
kamangir committed Feb 18, 2024
1 parent 4cca3a3 commit 70a4097
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
2 changes: 1 addition & 1 deletion abcli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

NAME = "abcli"

VERSION = "7.2689.1"
VERSION = "7.2692.1"

DESCRIPTION = "🚀 a language to speak AI."

Expand Down
2 changes: 2 additions & 0 deletions abcli/bash/list/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
"""list functions used in bash"""

NAME = "abcli.bash.list"
10 changes: 6 additions & 4 deletions abcli/bash/list/__main__.py
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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":
Expand Down
47 changes: 44 additions & 3 deletions abcli/file/__init__.py
Original file line number Diff line number Diff line change
@@ -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,
)
11 changes: 6 additions & 5 deletions abcli/file/__main__.py
Original file line number Diff line number Diff line change
@@ -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(
Expand Down

0 comments on commit 70a4097

Please sign in to comment.