-
Notifications
You must be signed in to change notification settings - Fork 70
/
.pre-commit-config.yaml
37 lines (35 loc) · 990 Bytes
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# SPDX-FileCopyrightText: 2021 The meson-python developers
#
# SPDX-License-Identifier: MIT
ci:
autofix_prs: false
autoupdate_commit_msg: 'MAINT: bump pre-commit dependencies'
autoupdate_schedule: 'quarterly'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-ast
- id: check-builtin-literals
- id: check-docstring-first
- id: check-merge-conflict
- id: check-yaml
- id: check-toml
- id: debug-statements
- id: double-quote-string-fixer
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
hooks:
- id: ruff
args: [--fix, --show-fixes, --output-format, grouped]
- repo: https://github.com/fsfe/reuse-tool
rev: v4.0.3
hooks:
- id: reuse
name: add SPDX headers
args: [annotate, --skip-existing, --skip-unrecognised, --copyright=The meson-python developers, --license=MIT]
pass_filenames: true
- id: reuse
name: reuse lint