1
0
Fork 0
forked from github/pelican

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