Skip to content

Commit

Permalink
Update .pre-commit-config.yaml (#7)
Browse files Browse the repository at this point in the history
* Update .pre-commit-config.yaml

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
jnoortheen and pre-commit-ci[bot] authored Jul 4, 2024
1 parent 9428cc3 commit ce58c42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
rev: 'v0.5.0'
hooks:
- id: ruff
args: [., --fix, --exit-non-zero-on-fix]
args: [xontrib, --fix, --exit-non-zero-on-fix]
pass_filenames: false
- id: ruff-format
args: [.]
Expand Down
4 changes: 2 additions & 2 deletions xontrib/abbrevs.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
if tp.TYPE_CHECKING:

class AbbrCallType(tp.Protocol):
def __call__(self, word: str, buffer: Buffer) -> str:
...
def __call__(self, word: str, buffer: Buffer) -> str: ...

AbbrValType = tp.Union[str, AbbrCallType]

Expand Down Expand Up @@ -88,6 +87,7 @@ def set_cursor_position(buffer, expanded: str) -> None:

def custom_keybindings(bindings, **kw):
from prompt_toolkit.filters import EmacsInsertMode, ViInsertMode

try:
from xonsh.shells.ptk_shell.key_bindings import carriage_return
except ImportError:
Expand Down

0 comments on commit ce58c42

Please sign in to comment.