mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-08-19 18:42:26 +02:00
c33455b7a0
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.
34 lines
776 B
YAML
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
|