Skip to content

Commit

Permalink
Update all pre-commit versions (#3678)
Browse files Browse the repository at this point in the history
Co-authored-by: Emma Hogan <[email protected]>
  • Loading branch information
mo-gill and ehogan authored Jul 3, 2024
1 parent bc25f87 commit 45442c2
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 24 deletions.
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exclude: |
^esmvaltool/diag_scripts/cvdp/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand All @@ -19,7 +19,7 @@ repos:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/adrienverge/yamllint
rev: 'v1.31.0'
rev: 'v1.35.1'
hooks:
- id: yamllint
- repo: local # nclcodestyle is installed alongside ESMValTool
Expand All @@ -30,16 +30,16 @@ repos:
language: system
files: '\.(ncl|NCL)$'
- repo: https://github.com/lorenzwalthert/precommit/ # Checks for R
rev: 'v0.3.2.9007'
rev: 'v0.4.2'
hooks:
- id: style-files # styler
- id: lintr
- repo: https://github.com/codespell-project/codespell
rev: 'v2.2.4'
rev: 'v2.3.0'
hooks:
- id: codespell
- repo: https://github.com/PyCQA/isort
rev: '5.12.0'
rev: '5.13.2'
hooks:
- id: isort
- repo: https://github.com/pre-commit/mirrors-yapf
Expand All @@ -49,10 +49,10 @@ repos:
additional_dependencies:
- 'toml'
- repo: https://github.com/myint/docformatter
rev: 'v1.6.5'
rev: 'v1.7.5'
hooks:
- id: docformatter
- repo: https://github.com/pycqa/flake8
rev: '6.0.0'
rev: '5.0.4'
hooks:
- id: flake8
18 changes: 8 additions & 10 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ dependencies:
- xlsxwriter
- zarr
# Python packages needed for unit testing
- flake8
- flake8 ==5.0.4
- pytest >=3.9,!=6.0.0rc1,!=6.0.0
- pytest-cov
- pytest-env
Expand All @@ -84,16 +84,16 @@ dependencies:
- sphinx >=6.1.3
- pydata-sphinx-theme
# Python packages needed for development
- codespell
- docformatter
- codespell ==2.3.0
- docformatter ==1.7.5
- imagehash
- isort
- isort ==5.13.2
- pre-commit
- prospector
- pyroma
# - vprof not on conda-forge
- yamllint
- yapf
- yamllint ==1.35.1
- yapf ==0.32.0

# NCL and dependencies
- ncl
Expand All @@ -113,7 +113,6 @@ dependencies:
- r-functional
- r-ggplot2
- r-gridextra
- r-lintr
- r-logging
- r-mapproj
- r-maps
Expand All @@ -127,13 +126,12 @@ dependencies:
- r-s2dverification
- r-snow
- r-spei
- r-styler
- r-udunits2
- r-yaml
# R packages needed for development
- r-git2r # dependency of lintr
- r-lintr
- r-styler
- r-lintr ==3.1.2
- r-styler ==1.10.3

# Julia (dependencies installed by separate script)
- julia
14 changes: 7 additions & 7 deletions environment_osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ dependencies:
- esmpy >=8.6.0 # github.com/SciTools-incubator/iris-esmf-regrid/pull/342
- esmvalcore 2.10.*
- fiona
- fsspec
- fire
- fsspec
- gdal
- iris >=3.6.1
- iris-esmf-regrid >=0.10.0 # github.com/SciTools-incubator/iris-esmf-regrid/pull/342
Expand Down Expand Up @@ -70,7 +70,7 @@ dependencies:
- xlsxwriter
- zarr
# Python packages needed for unit testing
- flake8
- flake8 ==5.0.4
- pytest >=3.9,!=6.0.0rc1,!=6.0.0
- pytest-cov
- pytest-env
Expand All @@ -84,13 +84,13 @@ dependencies:
- sphinx >=6.1.3
- pydata-sphinx-theme
# Python packages needed for development
- codespell
- docformatter
- codespell ==2.3.0
- docformatter ==1.7.5
- imagehash
- isort
- isort ==5.13.2
- pre-commit
- prospector
- pyroma
# - vprof not on conda-forge
- yamllint
- yapf
- yamllint ==1.35.1
- yapf ==0.32.0

0 comments on commit 45442c2

Please sign in to comment.