diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4ad149e5..58342856 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,17 +1,17 @@ repos: - repo: https://github.com/PyCQA/isort - rev: 5.5.4 + rev: 5.10.1 hooks: - id: isort - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 22.6.0 hooks: - id: black language_version: python3 - repo: https://gitlab.com/pycqa/flake8 - rev: 3.9.0 + rev: 4.0.1 hooks: - id: flake8 name: flake8 @@ -22,14 +22,16 @@ repos: types: [ python ] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.2.0 + rev: v4.3.0 hooks: - id: check-added-large-files - id: check-json + - id: check-xml - id: check-yaml + exclude: condabuild/meta.yaml - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.931 + rev: v0.961 hooks: - id: mypy files: src|sphinx|test diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c4fe2d76..686c7407 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -54,7 +54,7 @@ stages: versionSpec: '3.8' displayName: 'use Python 3.8' - script: | - python -m pip install isort==5.5.4 + python -m pip install isort~=5.10 python -m isort --check --diff . displayName: 'Run isort' - job: @@ -65,7 +65,7 @@ stages: versionSpec: '3.8' displayName: 'use Python 3.8' - script: | - python -m pip install black==22.3 + python -m pip install black~=22.6 python -m black --check . displayName: 'Run black' - job: @@ -76,7 +76,7 @@ stages: versionSpec: '3.8' displayName: 'use Python 3.8' - script: | - python -m pip install flake8==3.9.0 flake8-comprehensions + python -m pip install flake8~=4.0 flake8-comprehensions~=3.10 python -m flake8 --config tox.ini -v . displayName: 'Run flake8' - job: @@ -87,7 +87,7 @@ stages: versionSpec: '3.8' displayName: 'use Python 3.8' - script: | - python -m pip install mypy~=0.931 numpy~=1.22 "gamma-pytools~=2.0" "sklearndf>=2.0.dev3,<3a" + python -m pip install mypy~=0.961 numpy~=1.22 python -m mypy src displayName: 'Run mypy'