Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 13, 2023
1 parent 3aee8b5 commit f09b125
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tests/test_ptk_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ def test_ptk_prompt(line, exp, ptk_shell, capsys):
)
def test_ptk_default_append_history(cmd, exp_append_history, ptk_shell, monkeypatch):
"""Test that running an empty line or a comment does not append to history.
This test is necessary because the prompt-toolkit shell uses a custom _push() method that is different from the base shell's push() method."""
This test is necessary because the prompt-toolkit shell uses a custom _push() method that is different from the base shell's push() method.
"""
inp, out, shell = ptk_shell
append_history_calls = []

Expand Down
1 change: 0 additions & 1 deletion xontrib_ptk_shell/abbrevs.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ def set_cursor_position(buffer, expanded: str) -> None:


def custom_keybindings(bindings, **kw):

from prompt_toolkit.filters import EmacsInsertMode, ViInsertMode

from xontrib_ptk_shell.key_bindings import carriage_return
Expand Down
1 change: 0 additions & 1 deletion xontrib_ptk_shell/whole_word_jumping.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@


def custom_keybindings(bindings):

insert_mode = ViInsertMode() | EmacsInsertMode()

# Key bindings for jumping over whole words (everything that's not
Expand Down

0 comments on commit f09b125

Please sign in to comment.