Skip to content

Commit b480513

Browse files
committed
Update CI linter config
1 parent 155bb4a commit b480513

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@
1616

1717
repos:
1818
- repo: https://github.com/psf/black
19-
rev: 23.7.0
19+
rev: 24.1.1
2020
hooks:
2121
- id: black
2222
language_version: python3.10
2323
- repo: https://github.com/PyCQA/isort
24-
rev: 5.12.0
24+
rev: 5.13.2
2525
hooks:
2626
- id: isort
2727
language_version: python3.10
28+
- repo: https://github.com/pre-commit/mirrors-clang-format
29+
rev: v14.0.6
30+
hooks:
31+
- id: clang-format

azure-pipelines.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,10 @@ jobs:
1919
pool:
2020
vmImage: 'ubuntu-22.04'
2121
steps:
22-
- task: UsePythonVersion@0
23-
inputs:
24-
versionSpec: '3.10'
25-
addToPath: true
2622
- script: |
27-
python -m pip install --upgrade pip setuptools
28-
pip install isort black
29-
isort --check . && black --check .
23+
python -m pip install --upgrade pip pre-commit==4.0.1
24+
pre-commit install
25+
pre-commit run --all-files --show-diff-on-failure
3026
displayName: 'Linting'
3127
- job: Linux
3228
dependsOn: Lint

0 commit comments

Comments
 (0)