diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7f2684be..3b264421 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,12 +16,12 @@ 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 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