mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-03-29 02:19:51 +00:00
* pre-commit autoupdate
* pre-commit: check executables have shebangs and shebang files are executable
* .pre-commit-config.yaml: also add check for illegal windows names
* {package.json,.pre-commit-config.yaml}: fix yarn-lint
* prettier --write for yarn-lint pre-commit hook to pass
* package.json: unquiet eslint
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
# SPDX-FileCopyrightText: 2024 Aminda Suomalainen <suomalainen+git@mikaela.info>
|
|
#
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
# See https://pre-commit.com for more information
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
# See https://pre-commit.ci for more information
|
|
ci:
|
|
autoupdate_schedule: weekly
|
|
skip: [yarn-lint]
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
args: ["--markdown-linebreak-ext", "md"]
|
|
exclude_types: [svg]
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: check-added-large-files
|
|
- id: check-executables-have-shebangs
|
|
- id: check-shebang-scripts-are-executable
|
|
- id: check-illegal-windows-names
|
|
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
|
rev: "3.0.3"
|
|
hooks:
|
|
- id: editorconfig-checker
|
|
alias: ec
|
|
- repo: https://github.com/fsfe/reuse-tool
|
|
rev: v4.0.3
|
|
hooks:
|
|
- id: reuse
|
|
- repo: local
|
|
hooks:
|
|
- id: yarn-lint
|
|
name: linter
|
|
entry: corepack yarn lint
|
|
language: system
|
|
- repo: https://github.com/python-jsonschema/check-jsonschema
|
|
rev: 0.29.3
|
|
hooks:
|
|
- id: check-renovate
|
|
additional_dependencies: ["pyjson5"]
|