Skip to content
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
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -10,20 +10,20 @@ repos:
- id: pretty-format-json
args: ["--autofix", "--indent=2", "--no-sort-keys"]

- repo: https://github.com/psf/black
rev: 23.3.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.11.0
hooks:
- id: black
args: ["--line-length", "100"]

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.260"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.14.4"
hooks:
- id: ruff
args: ["--fix"]

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.0
rev: 1.9.1
hooks:
- id: nbqa-ruff
args: ["--fix"]
Expand All @@ -35,7 +35,7 @@ repos:
args: ["--py37-plus"]

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.2.1
rev: v4.0.0-alpha.8
hooks:
- id: prettier
language_version: system
Expand All @@ -51,7 +51,7 @@ repos:
)$"

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.2.1
rev: v4.0.0-alpha.8
hooks:
- id: prettier
name: prettier-markdown
Expand Down
1 change: 0 additions & 1 deletion notebooks/Figure-1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"outputs": [],
"source": [
"import json\n",
"import os\n",
"\n",
"import fsspec\n",
"import matplotlib.pyplot as plt\n",
Expand Down
1 change: 0 additions & 1 deletion notebooks/Figure-3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"outputs": [],
"source": [
"import json\n",
"import os\n",
"\n",
"import fsspec\n",
"import matplotlib.pyplot as plt\n",
Expand Down
1 change: 0 additions & 1 deletion notebooks/Figure-5.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"outputs": [],
"source": [
"import json\n",
"import os\n",
"\n",
"import fsspec\n",
"import matplotlib.pyplot as plt\n",
Expand Down
1 change: 0 additions & 1 deletion notebooks/Figure-6.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"outputs": [],
"source": [
"import json\n",
"import os\n",
"\n",
"import fsspec\n",
"import geopandas\n",
Expand Down
5 changes: 1 addition & 4 deletions notebooks/Inline-Statistics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,8 @@
"outputs": [],
"source": [
"import json\n",
"import os\n",
"from collections import Counter\n",
"\n",
"import fsspec\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pandas as pd\n",
"import seaborn as sns\n",
Expand Down Expand Up @@ -966,7 +963,7 @@
"metadata": {},
"outputs": [],
"source": [
"fn = f\"https://carbonplan-forests.s3.us-west-2.amazonaws.com/offsets/archive/results/common-practice-verification.json\"\n",
"fn = \"https://carbonplan-forests.s3.us-west-2.amazonaws.com/offsets/archive/results/common-practice-verification.json\"\n",
"with fsspec.open(fn, mode=\"r\") as f:\n",
" cp_verification = json.load(f)"
]
Expand Down
1 change: 0 additions & 1 deletion notebooks/Statistics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"outputs": [],
"source": [
"import json\n",
"import os\n",
"\n",
"import fsspec\n",
"import numpy as np\n",
Expand Down
1 change: 0 additions & 1 deletion notebooks/Supplementary-Figure-1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"outputs": [],
"source": [
"import json\n",
"import os\n",
"\n",
"import fsspec\n",
"import matplotlib.pyplot as plt\n",
Expand Down
4 changes: 1 addition & 3 deletions notebooks/Supplementary-Figure-2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@
"outputs": [],
"source": [
"import json\n",
"import os\n",
"\n",
"import fsspec\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pandas as pd\n",
"from matplotlib import ticker"
"import pandas as pd"
]
},
{
Expand Down
4 changes: 0 additions & 4 deletions notebooks/Supplementary-Table-1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@
"outputs": [],
"source": [
"import json\n",
"import os\n",
"import random\n",
"\n",
"import fsspec\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pandas as pd"
]
},
Expand Down
4 changes: 0 additions & 4 deletions notebooks/Supplementary-Table-2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@
"outputs": [],
"source": [
"import json\n",
"import os\n",
"import random\n",
"\n",
"import fsspec\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pandas as pd"
]
},
Expand Down
Loading