pre-commit autoupdate, config update in general

This commit is contained in:
Aminda Suomalainen 2024-08-04 10:02:39 +03:00
parent b859b63e17
commit 35518f56e1
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -5,7 +5,13 @@
ci: ci:
# https://github.com/pre-commit-ci/issues/issues/83 # https://github.com/pre-commit-ci/issues/issues/83
autoupdate_schedule: quarterly autoupdate_schedule: quarterly
skip: [pnpm-install-dev, prettier] skip: [prettier]
default_language_version:
node: "lts"
# Remember .python-version !
python: "3.12"
ruby: ".ruby-version"
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
@ -13,18 +19,28 @@ repos:
hooks: hooks:
- id: trailing-whitespace - id: trailing-whitespace
args: ["--markdown-linebreak-ext", "md,markdown"] args: ["--markdown-linebreak-ext", "md,markdown"]
exclude_types: [svg, tsv]
#- id: end-of-file-fixer
- id: check-yaml - id: check-yaml
- id: check-added-large-files - id: check-added-large-files
- id: check-case-conflict - id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json - id: check-json
- id: check-merge-conflict - id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-toml
- id: check-xml
- id: destroyed-symlinks - id: destroyed-symlinks
- id: detect-private-key - id: detect-private-key
- id: fix-byte-order-marker - id: fix-byte-order-marker
- id: check-merge-conflict
- id: mixed-line-ending - id: mixed-line-ending
args: [--fix=auto] args: [--fix=auto]
- id: pretty-format-json - id: pretty-format-json
args: [--autofix, --no-ensure-ascii] args:
# Remember also: --no-sort-keys
# ASCII excludes the älphäbet amongst others
[--autofix, --indent, "\t", --no-ensure-ascii]
- repo: https://github.com/pre-commit-ci/pre-commit-ci-config - repo: https://github.com/pre-commit-ci/pre-commit-ci-config
rev: v1.6.1 rev: v1.6.1
@ -32,23 +48,16 @@ repos:
- id: check-pre-commit-ci-config - id: check-pre-commit-ci-config
- repo: https://github.com/python-jsonschema/check-jsonschema - repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.0 rev: 0.29.1
hooks: hooks:
- id: check-dependabot - id: check-dependabot
- id: check-github-workflows - id: check-github-workflows
- repo: local - repo: local
hooks: hooks:
- id: pnpm-install-dev
name: Install pnpm dev dependencies
entry: corepack pnpm install -D
language: system
always_run: true
#verbose: true
pass_filenames: false
- id: prettier - id: prettier
name: prettier name: prettier
entry: corepack pnpm exec prettier --cache --ignore-unknown --write entry: corepack pnpx prettier --cache --ignore-unknown --write
language: system language: system
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python - repo: https://github.com/editorconfig-checker/editorconfig-checker.python
@ -56,3 +65,4 @@ repos:
hooks: hooks:
- id: editorconfig-checker - id: editorconfig-checker
alias: ec alias: ec
args: [-disable-max-line-length]