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 7ea8378 commit 4b5bd15
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 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 -d W1203,C0103,C0111,C0114,C0115,C0116,C0411,W0404,W0237,C0209,C0415,W0621,W0702,W0102,W1202,E0401 $(git ls-files '*.py')
pylint -d W1203,C0103,C0111,C0114,C0115,C0116,C0411,W0404,W0237,C0209,C0415,W0621,W0702,W0102,W1202,E0401,W1514 $(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 @@ -2,7 +2,7 @@

NAME = "abcli"

VERSION = "7.2707.1"
VERSION = "7.2711.1"

DESCRIPTION = "🚀 a language to speak AI."

Expand Down
5 changes: 2 additions & 3 deletions abcli/file/load.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from copy import deepcopy
import json
from abcli.file import NAME
from abcli.file.classes import JsonEncoder
from abcli.logging import crash_report
from abcli import logging
import logging
Expand Down Expand Up @@ -155,7 +154,7 @@ def load_json(filename, civilized=False, default={}):
data: Any.
"""
success = False
data = {}
data = default

try:
with open(filename, "r") as fh:
Expand Down Expand Up @@ -223,7 +222,7 @@ def load_yaml(filename, civilized=False, default={}):
data: Any.
"""
success = False
data = {}
data = default

try:
import yaml
Expand Down
3 changes: 2 additions & 1 deletion abcli/file/save.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ def save_text(
filename (str): filename.
text (List[str]): text.
log (bool, optional): log. Defaults to False.
if_different (bool, optional): save if text is different from current filename content. Defaults to False.
if_different (bool, optional): save if text is different
from current filename content. Defaults to False.
remove_empty_lines (bool, optional): remove empty lines. Defaults to False.
Returns:
Expand Down
6 changes: 3 additions & 3 deletions abcli/keywords/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NAME = "abcli.keywords"

from .functions import pack
from .keywords import KEYWORDS

from .functions import *
NAME = "abcli.keywords"
2 changes: 1 addition & 1 deletion abcli/keywords/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import argparse
from . import *
from . import NAME, pack, KEYWORDS

list_of_tasks = "pack|unpack"

Expand Down

0 comments on commit 4b5bd15

Please sign in to comment.