File tree 2 files changed +5
-9
lines changed
2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 16
16
17
17
repos :
18
18
- repo : https://github.com/psf/black
19
- rev : 23.7.0
19
+ rev : 24.1.1
20
20
hooks :
21
21
- id : black
22
22
language_version : python3.10
23
23
- repo : https://github.com/PyCQA/isort
24
- rev : 5.12.0
24
+ rev : 5.13.2
25
25
hooks :
26
26
- id : isort
27
27
language_version : python3.10
Original file line number Diff line number Diff line change @@ -19,14 +19,10 @@ jobs:
19
19
pool :
20
20
vmImage : ' ubuntu-22.04'
21
21
steps :
22
- - task : UsePythonVersion@0
23
- inputs :
24
- versionSpec : ' 3.10'
25
- addToPath : true
26
22
- 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
30
26
displayName: 'Linting'
31
27
- job : Linux
32
28
dependsOn : Lint
You can’t perform that action at this time.
0 commit comments