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] 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