Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #179

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-toml
Expand All @@ -13,7 +13,7 @@ repos:
- id: check-yaml
- id: debug-statements
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0
rev: v0.6.9
hooks:
# Run the linter.
- id: ruff
Expand Down
11 changes: 5 additions & 6 deletions notebooks/batch_submission.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"metadata": {},
"outputs": [],
"source": [
"#input args\n",
"# input args\n",
"repo = \"https://github.com/jbusecke/cmip6-leap-feedstock.git\"\n",
"ref = \"beam-dataflow-testing\"\n",
"f_name = \"config.json\"\n",
Expand All @@ -108,8 +108,8 @@
"outputs": [],
"source": [
"def shorten_id(iid):\n",
" iid_stripped = '-'.join(iid.split('.')[3:])\n",
" assert len(iid_stripped)<66\n",
" iid_stripped = \"-\".join(iid.split(\".\")[3:])\n",
" assert len(iid_stripped) < 66\n",
" return iid_stripped"
]
},
Expand Down Expand Up @@ -144,14 +144,14 @@
],
"source": [
"# from the integration tests of pangeo-forge-runner\n",
"#https://github.com/pangeo-forge/pangeo-forge-runner/blob/main/tests/integration/test_dataflow_integration.py\n",
"# https://github.com/pangeo-forge/pangeo-forge-runner/blob/main/tests/integration/test_dataflow_integration.py\n",
"\n",
"import subprocess\n",
"import time\n",
"import xarray as xr\n",
"\n",
"iid = \"CMIP6.ScenarioMIP.EC-Earth-Consortium.EC-Earth3.ssp585.r107i1p1f1.day.psl.gr.v20200412\"\n",
"jobname=shorten_id(iid)\n",
"jobname = shorten_id(iid)\n",
"target_store = f\"{target_bucket}/{iid}.zarr\"\n",
"machine_type = \"e2-highmem-8\"\n",
"cmd = [\n",
Expand Down Expand Up @@ -223,7 +223,6 @@
"metadata": {},
"outputs": [],
"source": [
"\n",
"# note the start time, because certain errors on dataflow manifest as long hangs,\n",
"# and if that's the case, we'll want to bail out of this test manually, rather than\n",
"# wait for the the job to officially fail.\n",
Expand Down
Loading