Use ruff in pre-commit

This commit is contained in:
Chris Rose 2023-10-28 10:44:39 -07:00
commit 7dfc799f25
No known key found for this signature in database

View file

@ -13,13 +13,11 @@ repos:
- id: end-of-file-fixer - id: end-of-file-fixer
- id: forbid-new-submodules - id: forbid-new-submodules
- id: trailing-whitespace - id: trailing-whitespace
- repo: https://github.com/PyCQA/flake8 - repo: https://github.com/astral-sh/ruff-pre-commit
rev: 3.9.2 rev: v0.1.0
hooks: hooks:
- id: flake8 - id: ruff
name: Flake8 on commit diff - id: ruff-format
description: This hook limits Flake8 checks to changed lines of code. args: ["--check"]
entry: bash
args: [-c, 'git diff HEAD | flake8 --diff --max-line-length=88']
exclude: ^pelican/tests/output/ exclude: ^pelican/tests/output/