# Copyright (c) 2025, NVIDIA CORPORATION. ci: autofix_commit_msg: | [pre-commit.ci] auto code formatting autofix_prs: false autoupdate_branch: '' autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate' autoupdate_schedule: quarterly skip: [] submodules: false repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: - id: end-of-file-fixer - id: mixed-line-ending - id: trailing-whitespace - repo: https://github.com/pre-commit/mirrors-clang-format rev: v21.1.2 hooks: - id: clang-format types_or: [file] files: | (?x)^( ^.*\.c$| ^.*\.cpp$| ^.*\.cu$| ^.*\.cuh$| ^.*\.cxx$| ^.*\.h$| ^.*\.hpp$| ^.*\.inl$| ^.*\.mm$ ) args: ["-fallback-style=none", "-style=file", "-i"] # TODO/REMINDER: add the Ruff vscode extension to the devcontainers # Ruff, the Python auto-correcting linter/formatter written in Rust - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.13.3 hooks: - id: ruff # linter - id: ruff-format # formatter # TOML lint & format - repo: https://github.com/ComPWA/taplo-pre-commit rev: v0.9.3 hooks: # See https://github.com/NVIDIA/cccl/issues/3426 # - id: taplo-lint # exclude: "^docs/" - id: taplo-format exclude: "^docs/" - repo: https://github.com/codespell-project/codespell rev: v2.4.1 hooks: - id: codespell additional_dependencies: [tomli] args: ["--toml", "pyproject.toml"] exclude: | (?x)^( build| CITATION.md ) default_language_version: python: python3