Skip to content

Commit 7468bfe

Browse files
committed
ignoring cyclomatic complexity on eval function
1 parent 1122b36 commit 7468bfe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/bibleit/command/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def eval_module(name):
3131
return eval_module(_default_module)
3232

3333

34-
def eval(ctx, *line, module=None):
34+
def eval(ctx, *line, module=None): # noqa: C901
3535
"""Evaluate a function with arbitrary arguments."""
3636
if module is None:
3737
module = _default_module

src/bibleit/command/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"&": "search",
1717
"%": "count",
1818
"-": "note",
19-
"\\": "notes"
19+
"\\": "notes",
2020
}
2121

2222

@@ -46,8 +46,8 @@ def _ref_parse(ctx, bible_fn, target, term):
4646

4747

4848
def _doc(hdoc, name):
49-
if hdoc and name:
50-
return hdoc.replace("@alias", _format_alias(name))
49+
if hdoc and name:
50+
return hdoc.replace("@alias", _format_alias(name))
5151

5252

5353
def help(ctx, *args):

0 commit comments

Comments
 (0)