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 for more information
# See https://pre-commit.com/hooks.html for more hooks # See https://pre-commit.com/hooks.html for more hooks
repos: repos:
- repo: https://github.com/psf/black - repo: https://github.com/astral-sh/ruff-pre-commit
rev: 23.3.0 rev: v0.1.10
hooks:
- id: black
language_version: python
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.270'
hooks: hooks:
- id: ruff - 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 old_sys_path = sys.path.copy() # noqa
__import__("sys").path.append( __import__("sys").path.append(__import__("os").path.expanduser("~/.local/share/viv")) # noqa # isort: off
__import__("os").path.expanduser("~/.local/share/viv")
) # noqa # isort: off
__import__("viv").use("rich") # noqa # isort: off __import__("viv").use("rich") # noqa # isort: off
from difflib import unified_diff from difflib import unified_diff