From f8dad949617e87180b8204ecc97dd7bb65709c1d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 Sep 2023 19:56:17 +0000 Subject: [PATCH 1/2] Update pre-commit hooks to latest versions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/PyCQA/autoflake: v2.2.0 → v2.2.1](https://github.com/PyCQA/autoflake/compare/v2.2.0...v2.2.1) - [github.com/astral-sh/ruff-pre-commit: v0.0.282 → v0.0.287](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.282...v0.0.287) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cb5d978ed..5db81ae41 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: hooks: - id: clang-format - repo: https://github.com/PyCQA/autoflake - rev: v2.2.0 + rev: v2.2.1 hooks: - id: autoflake args: [--remove-all-unused-imports, --ignore-init-module-imports] @@ -40,7 +40,7 @@ repos: exclude: ^docker|deprecated|NaviGator/simulation/VRX - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: 'v0.0.282' + rev: 'v0.0.287' hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From f350528ea4aedf4c2c052de3a7673dda37581c9c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 Sep 2023 19:57:04 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../utils/navigator_tools/nodes/estimated_object_setter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NaviGator/utils/navigator_tools/nodes/estimated_object_setter.py b/NaviGator/utils/navigator_tools/nodes/estimated_object_setter.py index 99845b004..57d4b7c01 100755 --- a/NaviGator/utils/navigator_tools/nodes/estimated_object_setter.py +++ b/NaviGator/utils/navigator_tools/nodes/estimated_object_setter.py @@ -24,7 +24,7 @@ async def main(name, lla): name = "_".join(txt.title() for txt in name.split("_")) point = await convert.request(CoordinateConversionRequest(frame="lla", point=lla)) - await db(ObjectDBQueryRequest(cmd="{}={p[0]}, {p[1]}".format(name, p=point.enu))) + await db(ObjectDBQueryRequest(cmd=f"{name}={point.enu[0]}, {point.enu[1]}")) if __name__ == "__main__":