From 3abf42b0bee8ad5c975712b9bf7d7a29aff67e69 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 21:36:00 +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/pre-commit/pre-commit-hooks: v4.4.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v5.0.0) - [github.com/psf/black: 23.9.1 → 24.10.0](https://github.com/psf/black/compare/23.9.1...24.10.0) - [github.com/pycqa/isort: 5.12.0 → 5.13.2](https://github.com/pycqa/isort/compare/5.12.0...5.13.2) - [github.com/pycqa/flake8: 6.1.0 → 7.1.1](https://github.com/pycqa/flake8/compare/6.1.0...7.1.1) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eab6683..7d7c6e6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ exclude: "node_modules|migrations|.venv|tests/dev/|tests/fixtures/|presentations fail_fast: false repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v5.0.0 hooks: - id: check-added-large-files args: ["--maxkb=500"] @@ -18,18 +18,18 @@ repos: args: [--markdown-linebreak-ext=md] - repo: https://github.com/psf/black - rev: 23.9.1 + rev: 24.10.0 hooks: - id: black - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort args: ["--profile", "black", "--filter-files"] - repo: https://github.com/pycqa/flake8 - rev: 6.1.0 + rev: 7.1.1 hooks: - id: flake8 language: python From af25f6a8f33af791ab521ac61db3c751b99b31d3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 21:36:10 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- gml_application_schema_toolbox/core/gmlas_xpath.py | 8 +++++--- gml_application_schema_toolbox/creation_dialog.py | 1 - .../toolbelt/network_manager.py | 8 +++++--- gml_application_schema_toolbox/viewers/__init__.py | 1 + 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/gml_application_schema_toolbox/core/gmlas_xpath.py b/gml_application_schema_toolbox/core/gmlas_xpath.py index cdd59d1..f74f492 100644 --- a/gml_application_schema_toolbox/core/gmlas_xpath.py +++ b/gml_application_schema_toolbox/core/gmlas_xpath.py @@ -131,9 +131,11 @@ def resolve_xpath(self, ogr_layer_name, ogr_layer_pkid_name, pkid_value, xpath): where = " and ".join( [ - "{}.{} = {}.{}".format(lyr[0], lyr[1], rec[0], rec[1]) - if isinstance(rec, tuple) - else "{}.{} = {}".format(lyr[0], lyr[1], rec) + ( + "{}.{} = {}.{}".format(lyr[0], lyr[1], rec[0], rec[1]) + if isinstance(rec, tuple) + else "{}.{} = {}".format(lyr[0], lyr[1], rec) + ) for lyr, rec in sql_wheres ] ) diff --git a/gml_application_schema_toolbox/creation_dialog.py b/gml_application_schema_toolbox/creation_dialog.py index 1b6fbe7..e2a9a66 100644 --- a/gml_application_schema_toolbox/creation_dialog.py +++ b/gml_application_schema_toolbox/creation_dialog.py @@ -17,7 +17,6 @@ */ """ - import os from builtins import range, str diff --git a/gml_application_schema_toolbox/toolbelt/network_manager.py b/gml_application_schema_toolbox/toolbelt/network_manager.py index 379fbed..bdaee07 100644 --- a/gml_application_schema_toolbox/toolbelt/network_manager.py +++ b/gml_application_schema_toolbox/toolbelt/network_manager.py @@ -448,9 +448,11 @@ def replyFinished(self): % ( self.http_call_result.status_code, self.http_call_result.status_message, - self.reply.url().toString() - if self.reply - else "reply has been deleted", + ( + self.reply.url().toString() + if self.reply + else "reply has been deleted" + ), ) ) for k, v in list(self.http_call_result.headers.items()): diff --git a/gml_application_schema_toolbox/viewers/__init__.py b/gml_application_schema_toolbox/viewers/__init__.py index 8692056..3c645c8 100644 --- a/gml_application_schema_toolbox/viewers/__init__.py +++ b/gml_application_schema_toolbox/viewers/__init__.py @@ -16,6 +16,7 @@ * License along with this library; if not, see . */ """ + from gml_application_schema_toolbox.viewers.geology_logs import ( # noqa: F401 GeologyLogViewer, )