From 1c11af5d01cb884fe17d16f45abfb9353871a63c Mon Sep 17 00:00:00 2001 From: Irina Truong Date: Wed, 24 Dec 2025 15:46:33 -0800 Subject: [PATCH 1/3] Remove license classifier. --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a7facac8..cbd05d15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,6 @@ description = "CLI for Postgres Database. With auto-completion and syntax highli readme = "README.rst" classifiers = [ "Intended Audience :: Developers", - "License :: OSI Approved :: BSD License", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 3", From 4f4fbd5022145681018ebb6af3198e8b61ae25e0 Mon Sep 17 00:00:00 2001 From: Irina Truong Date: Wed, 24 Dec 2025 16:00:49 -0800 Subject: [PATCH 2/3] Fix changelog formatting. --- changelog.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.rst b/changelog.rst index fd20ec32..45ee4adf 100644 --- a/changelog.rst +++ b/changelog.rst @@ -1,5 +1,5 @@ 4.4.0 (2025-12-24) -============== +================== Features: --------- From baacf459f00c3d7b6b89ff657ca7d1c09b6049cf Mon Sep 17 00:00:00 2001 From: Irina Truong Date: Wed, 24 Dec 2025 16:25:53 -0800 Subject: [PATCH 3/3] Lint fixes. --- .pre-commit-config.yaml | 2 +- pgcli/pgexecute.py | 3 ++- pyproject.toml | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 41cef209..9284586b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.11.7 + rev: v0.14.10 hooks: # Run the linter. - id: ruff diff --git a/pgcli/pgexecute.py b/pgcli/pgexecute.py index b82157ce..9918da33 100644 --- a/pgcli/pgexecute.py +++ b/pgcli/pgexecute.py @@ -492,7 +492,8 @@ def view_definition(self, spec): else: template = "CREATE OR REPLACE VIEW {name} AS \n{stmt}" return ( - psycopg.sql.SQL(template) + psycopg.sql + .SQL(template) .format( name=psycopg.sql.Identifier(result.nspname, result.relname), stmt=psycopg.sql.SQL(result.viewdef), diff --git a/pyproject.toml b/pyproject.toml index cbd05d15..c3268cd8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -84,6 +84,7 @@ pgcli = ["pgclirc", "packages/pgliterals/pgliterals.json"] [tool.ruff] target-version = 'py39' line-length = 140 +show-fixes = true [tool.ruff.lint] select = [