Skip to content

Commit

Permalink
BUILD: update package versions for code linters
Browse files Browse the repository at this point in the history
  • Loading branch information
j-ittner committed Jul 20, 2022
1 parent 99c3df4 commit 15488ec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
12 changes: 7 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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'
Expand Down

0 comments on commit 15488ec

Please sign in to comment.