File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed
Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -146,8 +146,11 @@ jobs:
146146 # Also, it means code coverage is only generated if the test suite is
147147 # passing at least for that job, avoiding useless coverage reports.
148148 uses : codecov/codecov-action@v3
149+ # Warning: GitHub Actions expressions require single-quoted strings.
150+ # Double quotes will break workflow validation (even though YAML allows
151+ # them). So don't change the quoting below.
149152 if : |
150- matrix.os == " ubuntu-latest" && matrix.python-version == " 3.10"
153+ matrix.os == ' ubuntu-latest' && matrix.python-version == ' 3.10'
151154 with :
152155 file : |
153156 ${{ github.workspace }}/main/cf/test/cf_coverage_reports/coverage.xml
Original file line number Diff line number Diff line change 1010 # Use specific format-enforcing pre-commit hooks from the core library
1111 # with the default configuration (see pre-commit.com for documentation)
1212 - repo : https://github.com/pre-commit/pre-commit-hooks
13- rev : v4.6 .0
13+ rev : v6.0 .0
1414 hooks :
1515 - id : check-ast
1616 - id : debug-statements
2323 # (see https://black.readthedocs.io/en/stable/ for documentation and see
2424 # the cf-python pyproject.toml file for our custom black configuration)
2525 - repo : https://github.com/ambv/black
26- rev : 24.4.2
26+ rev : 25.12.0
2727 hooks :
2828 - id : black
2929 language_version : python3
5353 # (see https://flake8.pycqa.org/en/latest/ for documentation and see
5454 # the cf-python .flake8 file for our custom flake8 configuration)
5555 - repo : https://github.com/PyCQA/flake8
56- rev : 7.1 .0
56+ rev : 7.3 .0
5757 hooks :
5858 - id : flake8
5959
6262 # compatible with 'black' with the lines set to ensure so in the repo's
6363 # pyproject.toml. Other than that and the below, no extra config is required.
6464 - repo : https://github.com/pycqa/isort
65- rev : 5.13.2
65+ rev : 7.0.0
6666 hooks :
6767 - id : isort
6868 name : isort (python)
Original file line number Diff line number Diff line change @@ -15,8 +15,11 @@ profile = "black"
1515# ... and since we set this against the black default line length:
1616line_length =79
1717# Prevent isort from auto-formatting '__init__.py' file imports because
18- # they require a specific non-aphabetical (etc.) ordering else they will
19- # cause errors due to bad or circular importing across the modules.
18+ # they require a specific non-alphabetical (etc.) ordering else they will
19+ # cause errors due to bad or circular importing across the modules. Also
20+ # skip the recipes, since we have a certain import order there for clarity
21+ # and to avoid incompatibilities with some matplotlib and esmpy versions
22+ # which can cause a seg fault if cf-plot/matplotlib is imported first.
2023extend_skip_glob = [
2124 " **/__init__.py" ,
2225 " recipes-docs/source/recipes/**" ,
You can’t perform that action at this time.
0 commit comments