diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6e7c64fd982fc..e6dcc3f464ac7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v4.6.0 hooks: - id: check-json - id: check-merge-conflict @@ -22,7 +22,7 @@ repos: args: [--markdown-linebreak-ext=md] - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.43.0 + rev: v0.41.0 hooks: - id: markdownlint args: [-c, .markdownlint.yaml, --fix] @@ -53,7 +53,7 @@ repos: - id: shellcheck - repo: https://github.com/scop/pre-commit-shfmt - rev: v3.10.0-2 + rev: v3.9.0-1 hooks: - id: shfmt args: [-w, -s, -i=4] @@ -64,26 +64,26 @@ repos: - id: isort - repo: https://github.com/psf/black - rev: 24.10.0 + rev: 24.8.0 hooks: - id: black args: [--line-length=100] - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v19.1.4 + rev: v18.1.8 hooks: - id: clang-format types_or: [c++, c, cuda] - repo: https://github.com/cpplint/cpplint - rev: 2.0.0 + rev: 1.6.1 hooks: - id: cpplint args: [--quiet] exclude: .cu - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.30.0 + rev: 0.29.2 hooks: - id: check-metaschema files: ^.+/schema/.*schema\.json$ diff --git a/CPPLINT.cfg b/CPPLINT.cfg index 159042dba0b48..81869c92be64c 100644 --- a/CPPLINT.cfg +++ b/CPPLINT.cfg @@ -7,12 +7,10 @@ set noparent linelength=100 includeorder=standardcfirst filter=-build/c++11 # we do allow C++11 -filter=-build/c++17 # we allow filter=-build/namespaces_literals # we allow using namespace for literals filter=-runtime/references # we consider passing non-const references to be ok filter=-whitespace/braces # we wrap open curly braces for namespaces, classes and functions filter=-whitespace/indent # we don't indent keywords like public, protected and private with one space -filter=-whitespace/newline # we allow the developer to decide about newline at the end of file (it's clashing with clang-format) filter=-whitespace/parens # we allow closing parenthesis to be on the next line filter=-whitespace/semicolon # we allow the developer to decide about whitespace after a semicolon filter=-build/header_guard # we automatically fix the names of header guards using pre-commit