2023-04-16 09:07:44 +02:00
|
|
|
---
|
2019-11-09 08:37:11 -08:00
|
|
|
# See https://pre-commit.com/hooks.html for info on hooks
|
|
|
|
|
repos:
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2023-04-16 09:07:44 +02:00
|
|
|
rev: v4.4.0
|
2019-11-09 08:37:11 -08:00
|
|
|
hooks:
|
|
|
|
|
- id: check-added-large-files
|
|
|
|
|
- id: check-ast
|
|
|
|
|
- id: check-toml
|
|
|
|
|
- id: check-yaml
|
|
|
|
|
- id: debug-statements
|
|
|
|
|
- id: detect-private-key
|
|
|
|
|
- id: end-of-file-fixer
|
2023-04-16 09:07:44 +02:00
|
|
|
- id: forbid-new-submodules
|
2019-11-09 08:37:11 -08:00
|
|
|
- id: trailing-whitespace
|
2022-08-04 15:01:17 +02:00
|
|
|
- repo: https://github.com/PyCQA/flake8
|
|
|
|
|
rev: 3.9.2
|
|
|
|
|
hooks:
|
2020-04-30 21:26:02 +02:00
|
|
|
- id: flake8
|
2020-04-30 21:43:31 +02:00
|
|
|
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']
|
2020-04-30 21:26:02 +02:00
|
|
|
|
2020-04-14 17:44:00 +02:00
|
|
|
exclude: ^pelican/tests/output/
|