Files
TagStudio/.pre-commit-config.yaml
T
Xarvex c33455b7a0 fix(dev): add reuse linter
We use this for our CI checks but for some reason not locally. Add it to
our pyproject and Nix shell, and create a pre-commit step for it.
2026-08-17 23:43:19 -05:00

34 lines
776 B
YAML

# SPDX-FileCopyrightText: (c) TagStudio Contributors
# SPDX-License-Identifier: CC0-1.0
---
repos:
- repo: local
hooks:
- id: reuse
name: reuse
entry: reuse lint-file
language: system
- id: pyright
name: pyright
entry: pyright
language: system
types_or: [python, pyi]
require_serial: true
- id: ruff
name: ruff
entry: ruff check
language: system
types_or: [python, pyi, jupyter]
args: [--force-exclude]
require_serial: true
- id: ruff-format
name: ruff-format
entry: ruff format
language: system
types_or: [python, pyi, jupyter]
args: [--force-exclude, --check]
require_serial: true