From 9c3e08fdcb6996c1f23c579b03d0d4f215dffec9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 1 Mar 2024 10:14:52 -0800 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#183) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 18 +++++++++--------- scripts/nftd/01_nftd_to_cogs.ipynb | 6 +++--- scripts/nlcd/01_nlcd_to_cogs.ipynb | 6 +++--- scripts/worldclim/01_raw_to_zarr.ipynb | 14 +++++++------- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6382ce2..f8ae730 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -14,41 +14,41 @@ repos: - id: mixed-line-ending - repo: https://github.com/asottile/pyupgrade - rev: v3.8.0 + rev: v3.15.0 hooks: - id: pyupgrade args: - '--py38-plus' - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 24.1.1 hooks: - id: black - id: black-jupyter - repo: https://github.com/keewis/blackdoc - rev: v0.3.8 + rev: v0.3.9 hooks: - id: blackdoc - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.0.276' + rev: 'v0.2.0' hooks: - id: ruff args: ['--fix'] - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.0-alpha.9-for-vscode + rev: v4.0.0-alpha.8 hooks: - id: prettier - repo: https://github.com/kynan/nbstripout - rev: 0.6.1 + rev: 0.7.1 hooks: - id: nbstripout - repo: https://github.com/pre-commit/mirrors-prettier - rev: 'v3.0.3' + rev: 'v4.0.0-alpha.8' hooks: - id: prettier files: "\\.(\ @@ -63,7 +63,7 @@ repos: )$" - repo: https://github.com/pre-commit/mirrors-prettier - rev: 'v3.0.3' + rev: 'v4.0.0-alpha.8' hooks: - id: prettier name: prettier-markdown diff --git a/scripts/nftd/01_nftd_to_cogs.ipynb b/scripts/nftd/01_nftd_to_cogs.ipynb index 187c9f1..6fe5607 100644 --- a/scripts/nftd/01_nftd_to_cogs.ipynb +++ b/scripts/nftd/01_nftd_to_cogs.ipynb @@ -59,9 +59,9 @@ "outputs": [], "source": [ "dst_profile = cog_profiles.get(\"deflate\")\n", - "os.environ[\n", - " \"GOOGLE_APPLICATION_CREDENTIALS\"\n", - "] = \"/Users/freeman/.config/gcloud/legacy_credentials/jeremy@carbonplan.org/adc.json\"\n", + "os.environ[\"GOOGLE_APPLICATION_CREDENTIALS\"] = (\n", + " \"/Users/freeman/.config/gcloud/legacy_credentials/jeremy@carbonplan.org/adc.json\"\n", + ")\n", "\n", "\n", "def upload(src, target, bucket=\"carbonplan-data\"):\n", diff --git a/scripts/nlcd/01_nlcd_to_cogs.ipynb b/scripts/nlcd/01_nlcd_to_cogs.ipynb index 8604607..a6746ee 100644 --- a/scripts/nlcd/01_nlcd_to_cogs.ipynb +++ b/scripts/nlcd/01_nlcd_to_cogs.ipynb @@ -55,9 +55,9 @@ "source": [ "# This is the COG profile:\n", "dst_profile = cog_profiles.get(\"deflate\")\n", - "os.environ[\n", - " \"GOOGLE_APPLICATION_CREDENTIALS\"\n", - "] = \"/Users/freeman/.config/gcloud/legacy_credentials/jeremy@carbonplan.org/adc.json\"\n", + "os.environ[\"GOOGLE_APPLICATION_CREDENTIALS\"] = (\n", + " \"/Users/freeman/.config/gcloud/legacy_credentials/jeremy@carbonplan.org/adc.json\"\n", + ")\n", "\n", "\n", "def upload(src, target, bucket=\"carbonplan-data\"):\n", diff --git a/scripts/worldclim/01_raw_to_zarr.ipynb b/scripts/worldclim/01_raw_to_zarr.ipynb index 7f2754c..f3ba5fc 100644 --- a/scripts/worldclim/01_raw_to_zarr.ipynb +++ b/scripts/worldclim/01_raw_to_zarr.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "laden-anger", + "id": "0", "metadata": {}, "source": [ "- https://www.worldclim.org/data/worldclim21.html\n", @@ -16,7 +16,7 @@ { "cell_type": "code", "execution_count": null, - "id": "owned-raleigh", + "id": "1", "metadata": {}, "outputs": [], "source": [ @@ -28,7 +28,7 @@ { "cell_type": "code", "execution_count": null, - "id": "accurate-daily", + "id": "2", "metadata": {}, "outputs": [], "source": [ @@ -56,7 +56,7 @@ { "cell_type": "code", "execution_count": null, - "id": "accessible-excerpt", + "id": "3", "metadata": {}, "outputs": [], "source": [ @@ -66,7 +66,7 @@ { "cell_type": "code", "execution_count": null, - "id": "boring-fundamental", + "id": "4", "metadata": {}, "outputs": [], "source": [ @@ -79,7 +79,7 @@ { "cell_type": "code", "execution_count": null, - "id": "lyric-brazilian", + "id": "5", "metadata": {}, "outputs": [], "source": [ @@ -117,7 +117,7 @@ { "cell_type": "code", "execution_count": null, - "id": "surface-filling", + "id": "6", "metadata": {}, "outputs": [], "source": [