From 550c9a66525e329264eb0022f761e960195b8964 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Mon, 24 Jun 2024 21:08:32 +0000 Subject: [PATCH 1/2] checks: Enable more pre-commit tools from the pre-commit-hooks repo --- .pre-commit-config.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2e8f46c888..b4b74ef18f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,6 +23,23 @@ repos: .*\.kate-swp$| .*\.svg$ ) + - id: check-case-conflict + # - id: check-executables-have-shebangs # Nice to have once fixes applied + - id: check-json + - id: check-merge-conflict + # - id: check-shebang-scripts-are-executable # Nice to have once fixes applied + - id: check-symlinks + - id: check-toml + - id: check-vcs-permalinks + - id: check-xml + exclude: | + (?x)^( + src/gui/wxpython/wx.metadata/profiles/basicProfile.xml| + src/gui/wxpython/wx.metadata/profiles/inspireProfile.xml| + src/gui/wxpython/wx.metadata/profiles/temporalProfile.xml + ) + - id: destroyed-symlinks + - id: detect-private-key - repo: https://github.com/igorshubovych/markdownlint-cli rev: v0.41.0 hooks: From ccf52279e8c6d768b60fc3842ad856d0733139cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Mon, 24 Jun 2024 21:09:33 +0000 Subject: [PATCH 2/2] style: Apply fixes for check-vcs-permalinks hook --- src/imagery/i.eodag/i.eodag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imagery/i.eodag/i.eodag.py b/src/imagery/i.eodag/i.eodag.py index fd65fd43e0..a454489a43 100755 --- a/src/imagery/i.eodag/i.eodag.py +++ b/src/imagery/i.eodag/i.eodag.py @@ -334,7 +334,7 @@ def get_aoi(vector=None): ) # TODO: Might need to check for number of coordinates # Make sure it won't cause problems like in: - # https://github.com/OSGeo/grass-addons/blob/grass8/src/imagery/i.sentinel/i.sentinel.download/i.sentinel.download.py#L273 + # https://github.com/OSGeo/grass-addons/blob/8eb244b8f229d668ed5306ed9f18f3b0b08c1e45/src/imagery/i.sentinel/i.sentinel.download/i.sentinel.download.py#L273 feature_type = geom[: geom.find("(")] coords = geom.replace(feature_type + "((", "").replace("))", "").split(", ") projected_geom = feature_type + "(("