mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2025-12-20 02:10:11 +01:00
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
default_stages: [pre-commit]
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.4.0
|
|
hooks:
|
|
- id: no-commit-to-branch
|
|
args: [--branch, main]
|
|
- id: check-added-large-files
|
|
- id: check-byte-order-marker
|
|
- id: check-executables-have-shebangs
|
|
- id: forbid-new-submodules
|
|
- id: check-yaml
|
|
- id: check-json
|
|
- id: pretty-format-json
|
|
args: ['--no-sort-keys']
|
|
- id: check-symlinks
|
|
- id: check-xml
|
|
- id: end-of-file-fixer
|
|
types_or: [c, shell, python]
|
|
- id: trailing-whitespace
|
|
types_or: [c, shell, python, xml]
|
|
- id: check-docstring-first
|
|
- id: check-merge-conflict
|
|
- id: mixed-line-ending
|
|
args: [--fix=lf]
|
|
- repo: https://github.com/codespell-project/codespell
|
|
rev: v2.2.6
|
|
hooks:
|
|
- id: codespell
|
|
args: ['--config', './data/codespell.cfg', '--write-changes']
|
|
- repo: https://github.com/ambv/black
|
|
rev: 23.12.0
|
|
hooks:
|
|
- id: black
|
|
- repo: https://github.com/igorshubovych/markdownlint-cli
|
|
rev: v0.38.0
|
|
hooks:
|
|
- id: markdownlint
|
|
args: ['--fix']
|