forked from github/pelican
Use ruff in pre-commit
This commit is contained in:
parent
6ed7395812
commit
7dfc799f25
1 changed files with 5 additions and 7 deletions
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue