build: change pre-commit config

This commit is contained in:
Daylin Morgan 2023-05-07 23:34:55 -05:00
parent 62834bbdd0
commit bac85faf24
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -2,22 +2,18 @@
# 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/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0 rev: v4.4.0
hooks: hooks:
- id: trailing-whitespace - id: trailing-whitespace
exclude: "(.*svg$|docs/rich-diff.md)"
- id: end-of-file-fixer - id: end-of-file-fixer
- id: check-added-large-files - id: check-added-large-files
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 22.3.0 rev: 23.1.0
hooks: hooks:
- id: black - id: black
language_version: python language_version: python
- repo: https://github.com/pycqa/flake8 - repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 4.0.1 rev: 'v0.0.245'
hooks: hooks:
- id: flake8 - id: ruff
args: [--fix, --exit-non-zero-on-fix]