# 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: 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
