Skip to content

Commit 7d6ff14

Browse files
authored
Update CI linter config (#170)
* Update CI linter config * Remove clang-format check
1 parent 155bb4a commit 7d6ff14

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
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

azure-pipelines.yml

+3-7
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)