From cf9a89259ced9db3170608fe41011c154292fd9a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 16:56:00 +0000 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#44) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.3 → v0.9.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.3...v0.9.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- osm_rawdata/pgasync.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8490403..339ceae 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: # Lint / autoformat: Python code - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: "v0.8.3" + rev: "v0.9.1" hooks: # Run the linter - id: ruff diff --git a/osm_rawdata/pgasync.py b/osm_rawdata/pgasync.py index 61db87a..42cde5d 100755 --- a/osm_rawdata/pgasync.py +++ b/osm_rawdata/pgasync.py @@ -85,7 +85,7 @@ async def connect( slash = uri.path.find("/") self.dburi["dbname"] = uri.path[slash + 1 :] - connect = f"postgres://{self.dburi['dbuser']}:{ self.dburi['dbpass']}@{self.dburi['dbhost']}/{self.dburi['dbname']}" + connect = f"postgres://{self.dburi['dbuser']}:{self.dburi['dbpass']}@{self.dburi['dbhost']}/{self.dburi['dbname']}" if self.dburi["dbname"] == "underpass": # Authentication data