From e2a7731bed757a144276a1b4c666e96e1dfc1297 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Feb 2024 23:57:14 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 22.3.0 → 24.2.0](https://github.com/psf/black/compare/22.3.0...24.2.0) - [github.com/commitizen-tools/commitizen: v2.18.0 → v3.15.0](https://github.com/commitizen-tools/commitizen/compare/v2.18.0...v3.15.0) - [github.com/kynan/nbstripout: 0.5.0 → 0.7.1](https://github.com/kynan/nbstripout/compare/0.5.0...0.7.1) - [github.com/pre-commit/mirrors-prettier: v2.7.1 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v2.7.1...v4.0.0-alpha.8) - https://github.com/charliermarsh/ruff-pre-commit → https://github.com/astral-sh/ruff-pre-commit - [github.com/astral-sh/ruff-pre-commit: v0.0.215 → v0.2.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.215...v0.2.2) - [github.com/FHPythonUtils/LicenseCheck: 2023.1.1 → 2024](https://github.com/FHPythonUtils/LicenseCheck/compare/2023.1.1...2024) - [github.com/codespell-project/codespell: v2.2.4 → v2.2.6](https://github.com/codespell-project/codespell/compare/v2.2.4...v2.2.6) --- .pre-commit-config.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e0d26d8..b1d5dd4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,32 +2,32 @@ default_install_hook_types: [pre-commit, commit-msg] repos: - repo: "https://github.com/psf/black" - rev: "22.3.0" + rev: "24.2.0" hooks: - id: black stages: [commit] - repo: "https://github.com/commitizen-tools/commitizen" - rev: "v2.18.0" + rev: "v3.15.0" hooks: - id: commitizen stages: [commit-msg] - repo: "https://github.com/kynan/nbstripout" - rev: "0.5.0" + rev: "0.7.1" hooks: - id: nbstripout stages: [commit] - repo: "https://github.com/pre-commit/mirrors-prettier" - rev: "v2.7.1" + rev: "v4.0.0-alpha.8" hooks: - id: prettier stages: [commit] exclude: tests\/test_.+\. - - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: "v0.0.215" + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: "v0.2.2" hooks: - id: ruff stages: [commit] @@ -39,13 +39,13 @@ repos: stages: [commit] - repo: https://github.com/FHPythonUtils/LicenseCheck - rev: "2023.1.1" + rev: "2024" hooks: - id: licensecheck stages: [commit] - repo: https://github.com/codespell-project/codespell - rev: v2.2.4 + rev: v2.2.6 hooks: - id: codespell stages: [commit] From 326ac416d74ce61c45666dfd9842ee7aff2afc60 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Feb 2024 23:57:29 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/conf.py | 1 + pygaul/__init__.py | 1 + tests/test_continent.py | 1 + tests/test_get_items.py | 1 - 4 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index ebd60e1..0aac956 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -70,6 +70,7 @@ autoapi_python_class_content = "init" autoapi_member_order = "groupwise" + # -- Script to authenticate to Earthengine using a token ----------------------- def gee_configure() -> None: """Initialize earth engine according to the environment. diff --git a/pygaul/__init__.py b/pygaul/__init__.py index 582f53e..a36215d 100644 --- a/pygaul/__init__.py +++ b/pygaul/__init__.py @@ -3,6 +3,7 @@ This lib provides access to FAO GAUL 2015 datasets from a Python script. it is the best boundary dataset available for GEE at this point. We provide access to The current version (2015) administrative areas till level 2. """ + import json import warnings from difflib import get_close_matches diff --git a/tests/test_continent.py b/tests/test_continent.py index da99c96..5caeabd 100644 --- a/tests/test_continent.py +++ b/tests/test_continent.py @@ -1,4 +1,5 @@ """Tests of the continents submanagement.""" + import json from pathlib import Path diff --git a/tests/test_get_items.py b/tests/test_get_items.py index 8c2d412..b3517cb 100644 --- a/tests/test_get_items.py +++ b/tests/test_get_items.py @@ -1,6 +1,5 @@ """Tests of the ``AdmItems`` function.""" - import pytest import pygaul