From 08765c4c90aaf26cdd6be65fe78ce5b819f93b97 Mon Sep 17 00:00:00 2001 From: a Date: Tue, 22 Sep 2020 00:11:21 +0300 Subject: [PATCH] black --- xonsh/completers/tools.py | 5 +---- xonsh/history/json.py | 2 +- xonsh/parsers/fstring_adaptor.py | 2 +- xonsh/xoreutils/ulimit.py | 8 +------- xontrib/whole_word_jumping.py | 1 - 5 files changed, 4 insertions(+), 14 deletions(-) diff --git a/xonsh/completers/tools.py b/xonsh/completers/tools.py index 809081b4c..17d2fccad 100644 --- a/xonsh/completers/tools.py +++ b/xonsh/completers/tools.py @@ -61,10 +61,7 @@ class RichCompletion(str): def __repr__(self): return "RichCompletion({}, prefix_len={}, display={}, description={})".format( - repr(str(self)), - self.prefix_len, - repr(self.display), - repr(self.description), + repr(str(self)), self.prefix_len, repr(self.display), repr(self.description) ) diff --git a/xonsh/history/json.py b/xonsh/history/json.py index 6ccef96e5..0104f3bdf 100644 --- a/xonsh/history/json.py +++ b/xonsh/history/json.py @@ -202,7 +202,7 @@ class JsonHistoryGC(threading.Thread): # info: file size, closing timestamp, number of commands, filename ts = lj.get("ts", (0.0, None)) files.append( - (ts[1] or ts[0], len(lj.sizes["cmds"]) - 1, f, cur_file_size,), + (ts[1] or ts[0], len(lj.sizes["cmds"]) - 1, f, cur_file_size) ) lj.close() if xonsh_debug: diff --git a/xonsh/parsers/fstring_adaptor.py b/xonsh/parsers/fstring_adaptor.py index 13e92b5fe..8aa8b53dd 100644 --- a/xonsh/parsers/fstring_adaptor.py +++ b/xonsh/parsers/fstring_adaptor.py @@ -181,7 +181,7 @@ class FStringAdaptor: ) ) field_node = ast.Tuple( - elts=elts, ctx=ast.Load(), lineno=lineno, col_offset=col_offset, + elts=elts, ctx=ast.Load(), lineno=lineno, col_offset=col_offset ) node.args[0] = field_node diff --git a/xonsh/xoreutils/ulimit.py b/xonsh/xoreutils/ulimit.py index ef801879d..7de42ff4e 100644 --- a/xonsh/xoreutils/ulimit.py +++ b/xonsh/xoreutils/ulimit.py @@ -159,13 +159,7 @@ def _ul_add_action(actions, opt, res_type, stderr): actions.append( [ _ul_show, - { - "res": r[0], - "res_type": res_type, - "desc": r[3], - "unit": r[4], - "opt": opt, - }, + {"res": r[0], "res_type": res_type, "desc": r[3], "unit": r[4], "opt": opt}, ] ) return True diff --git a/xontrib/whole_word_jumping.py b/xontrib/whole_word_jumping.py index d09b11b45..ac72fc9c9 100644 --- a/xontrib/whole_word_jumping.py +++ b/xontrib/whole_word_jumping.py @@ -39,4 +39,3 @@ def custom_keybindings(bindings, **kw): endpos = endpos + 1 if startpos == 0 else endpos buff.text = buff.text[:startpos] + buff.text[endpos:] buff.cursor_position = startpos -