Edit

kc3-lang/libxkbcommon/.pre-commit-config.yaml

Branch :

  • Show log

    Commit

  • Author : Pierre Le Marre
    Date : 2025-01-10 14:18:21
    Hash : d706e649
    Message : scripts: Fix formatting with Ruff 0.9 See: https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md#090

  • .pre-commit-config.yaml
  • # See https://pre-commit.com for more information
    # See https://pre-commit.com/hooks.html for more hooks
    repos:
    - repo: https://github.com/pre-commit/pre-commit-hooks
      rev: v4.6.0
      hooks:
      - id: trailing-whitespace
      - id: end-of-file-fixer
      - id: check-yaml
      - id: check-added-large-files
    - repo: https://github.com/charliermarsh/ruff-pre-commit
      rev: v0.9.0
      hooks:
      - id: ruff
        # ambiguous-variable-name (E741), line-too-long (E501)
        args: ['--ignore=E741,E501', '.']
      - id: ruff-format
        # 88 is the black default
        args: ['--line-length=88', '--check', '--diff', '.',]
    # [TODO] C linter/formatter
    # Note: There is an old config file for uncrustify (https://uncrustify.sourceforge.net)
    # in the repo, but we may want to migrate to other modern style.
    # - repo: https://github.com/pre-commit/mirrors-clang-format
    #   rev: v16.0.6
    #   hooks:
    #   - id: clang-format