@@ -5,10 +5,11 @@ exclude: |
55 (?x)
66 ^doc/sphinx/source/conf.py|
77 ^esmvaltool/diag_scripts/extreme_events/climdex.pcic.ncdf/|
8- ^esmvaltool/diag_scripts/cvdp/
8+ ^esmvaltool/diag_scripts/cvdp/|
9+ ^esmvaltool/utils/nclcodestyle/
910repos :
1011 - repo : https://github.com/pre-commit/pre-commit-hooks
11- rev : v4.6 .0
12+ rev : v5.0 .0
1213 hooks :
1314 - id : check-added-large-files
1415 - id : check-ast
@@ -18,41 +19,34 @@ repos:
1819 - id : end-of-file-fixer
1920 - id : trailing-whitespace
2021 args : [--markdown-linebreak-ext=md]
21- - repo : https://github.com/adrienverge/yamllint
22- rev : ' v1.35.1'
23- hooks :
24- - id : yamllint
25- - repo : local # nclcodestyle is installed alongside ESMValTool
26- hooks :
27- - id : nclcodestyle
28- name : nclcodestyle
29- entry : nclcodestyle
30- language : system
31- files : ' \.(ncl|NCL)$'
32- - repo : https://github.com/lorenzwalthert/precommit/ # Checks for R
33- rev : ' v0.4.2'
34- hooks :
35- - id : style-files # styler
36- - id : lintr
37- - repo : https://github.com/codespell-project/codespell
38- rev : ' v2.3.0'
39- hooks :
40- - id : codespell
41- - repo : https://github.com/PyCQA/isort
42- rev : ' 5.13.2'
43- hooks :
44- - id : isort
45- - repo : https://github.com/pre-commit/mirrors-yapf
46- rev : ' v0.32.0'
47- hooks :
48- - id : yapf
49- additional_dependencies :
50- - ' toml'
51- - repo : https://github.com/myint/docformatter
52- rev : ' v1.7.5'
53- hooks :
54- - id : docformatter
55- - repo : https://github.com/pycqa/flake8
56- rev : ' 5.0.4'
57- hooks :
58- - id : flake8
22+ - repo : https://github.com/astral-sh/ruff-pre-commit
23+ rev : " v0.9.3"
24+ hooks :
25+ - id : ruff
26+ args :
27+ - " --fix"
28+ # Do not use the configuration file but configure here so we can
29+ # enable more rules that are not mandatory in the configuration file.
30+ - " --select=B,E,F,I,ISC001,UP,W" # TODO: select D
31+ - " --ignore=E501"
32+ - id : ruff-format
33+ # - repo: https://github.com/adrienverge/yamllint
34+ # rev: 'v1.35.1'
35+ # hooks:
36+ # - id: yamllint
37+ # - repo: local # nclcodestyle is installed alongside ESMValTool
38+ # hooks:
39+ # - id: nclcodestyle
40+ # name: nclcodestyle
41+ # entry: nclcodestyle
42+ # language: system
43+ # files: '\.(ncl|NCL)$'
44+ # - repo: https://github.com/lorenzwalthert/precommit/ # Checks for R
45+ # rev: 'v0.4.2'
46+ # hooks:
47+ # - id: style-files # styler
48+ # - id: lintr
49+ # - repo: https://github.com/codespell-project/codespell
50+ # rev: 'v2.3.0'
51+ # hooks:
52+ # - id: codespell
0 commit comments