From b480513887a1548e8ee567e0dde60c9eabe315c8 Mon Sep 17 00:00:00 2001 From: Alexander Andreev Date: Wed, 5 Mar 2025 07:37:30 -0800 Subject: [PATCH 1/2] Update CI linter config --- .pre-commit-config.yaml | 8 ++++++-- azure-pipelines.yml | 10 +++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7f2684be..d0a861c7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,12 +16,16 @@ repos: - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 24.1.1 hooks: - id: black language_version: python3.10 - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort language_version: python3.10 + - repo: https://github.com/pre-commit/mirrors-clang-format + rev: v14.0.6 + hooks: + - id: clang-format diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b32320dc..80f0cfd9 100755 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -19,14 +19,10 @@ jobs: pool: vmImage: 'ubuntu-22.04' steps: - - task: UsePythonVersion@0 - inputs: - versionSpec: '3.10' - addToPath: true - script: | - python -m pip install --upgrade pip setuptools - pip install isort black - isort --check . && black --check . + python -m pip install --upgrade pip pre-commit==4.0.1 + pre-commit install + pre-commit run --all-files --show-diff-on-failure displayName: 'Linting' - job: Linux dependsOn: Lint From 44089920affa682e89fddf1184a3a58981bbb207 Mon Sep 17 00:00:00 2001 From: Alexander Andreev Date: Wed, 5 Mar 2025 07:49:23 -0800 Subject: [PATCH 2/2] Remove clang-format check --- .pre-commit-config.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d0a861c7..3b264421 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,3 @@ repos: hooks: - id: isort language_version: python3.10 - - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v14.0.6 - hooks: - - id: clang-format