chore: update pre-commit to only use ruff

This commit is contained in:
Daylin Morgan 2024-01-02 12:25:09 -06:00
parent 5c769fc905
commit b378d47253
Signed by: daylin
GPG Key ID: C1E52E7DD81DF79F
2 changed files with 5 additions and 11 deletions

View File

@ -1,13 +1,9 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
language_version: python
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.270'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.10
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
args: [ --fix ]
- id: ruff-format

View File

@ -7,9 +7,7 @@ import sys
old_sys_path = sys.path.copy() # noqa
__import__("sys").path.append(
__import__("os").path.expanduser("~/.local/share/viv")
) # noqa # isort: off
__import__("sys").path.append(__import__("os").path.expanduser("~/.local/share/viv")) # noqa # isort: off
__import__("viv").use("rich") # noqa # isort: off
from difflib import unified_diff