Skip to content

Commit

Permalink
📅 Commit Sat, 1 May 2021 17:19:06
Browse files Browse the repository at this point in the history
🔍️ minor changes based on lgtm
  • Loading branch information
securisec committed May 1, 2021
1 parent 7d35966 commit 8ef4e73
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion TODO
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Cli:
Enhance:

Plugins:
☐ sqlite plugin

Methods:
☐ windings decoding/encoding ♐︎●︎♋︎♑︎❀︎♏︎📁︎🖮︎🖲︎📂︎♍︎♏︎⌛︎🖰︎♐︎🖮︎📂︎🖰︎📂︎🖰︎🖰︎♍︎📁︎🗏︎🖮︎🖰︎♌︎📂︎♍︎📁︎♋︎🗏︎♌︎♎︎♍︎🖲︎♏︎❝︎ f︎l︎a︎g︎{︎e︎0︎7︎9︎1︎c︎e︎6︎8︎f︎7︎1︎8︎1︎8︎8︎c︎0︎3︎7︎8︎b︎1︎c︎0︎a︎3︎b︎d︎c︎9︎e︎}︎
Expand All @@ -42,6 +41,7 @@ Misc:
☐ cyberchef recipe to chepy recipe converter

Archive:
✔ sqlite plugin @project(Plugins)
✔ base 16 @project(Methods)
✔ protobuf plugin @project(Plugins)
✔ string to l33tspeak. @project(Methods)
Expand Down
2 changes: 1 addition & 1 deletion chepy/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def get_completions(self, document, complete_event):
)
not_chepy_obj = ""
if method_docs.get("returns"):
if method_docs["returns"] == None:
if method_docs["returns"] is None:
not_chepy_obj = "bg:{}".format(config.prompt_cli_method)
elif method_docs["returns"] == "ChepyPlugin":
not_chepy_obj = "bg:{}".format(config.prompt_plugin_method)
Expand Down
4 changes: 2 additions & 2 deletions chepy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def call_stack(func, *args, **kwargs):
func_sig["args"] = func_arguments
func_self._stack.append(func_sig)

return func(*args, **kwargs)
return func(*args, **kwargs) # lgtm [py/call-to-non-callable]


class ChepyCore(object):
Expand Down Expand Up @@ -994,7 +994,7 @@ def loop(self, iterations: int, callback: str, args: dict = {}):
)

for _ in range(int(iterations)):
d = getattr(self, callback)(**args)
getattr(self, callback)(**args)

self._stack = self._stack[: stack_loop_index + 1]
return self
Expand Down
2 changes: 1 addition & 1 deletion chepy/modules/internal/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def cli_pretty_print(fire: object):
fire (object): The fire object
"""
if fire is not None and isinstance(fire, Chepy):
print_in_colors(pprint.pprint(fire.state))
print_in_colors(pprint.pformat(fire.state))
else:
print(red("Nope. That didnt work.."))

Expand Down
2 changes: 1 addition & 1 deletion chepy/modules/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import difflib
from collections import OrderedDict
from typing import Any, TypeVar, Union
from typing import TypeVar, Union

import chepy.modules.internal.colors as _int_colors
import exrex
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# pylint: disable=undefined-variable
import sys
from setuptools import setup, find_packages
from os import path

Expand Down

0 comments on commit 8ef4e73

Please sign in to comment.