Skip to content

Commit baacf45

Browse files
committed
Lint fixes.
1 parent 4f4fbd5 commit baacf45

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
33
# Ruff version.
4-
rev: v0.11.7
4+
rev: v0.14.10
55
hooks:
66
# Run the linter.
77
- id: ruff

pgcli/pgexecute.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,8 @@ def view_definition(self, spec):
492492
else:
493493
template = "CREATE OR REPLACE VIEW {name} AS \n{stmt}"
494494
return (
495-
psycopg.sql.SQL(template)
495+
psycopg.sql
496+
.SQL(template)
496497
.format(
497498
name=psycopg.sql.Identifier(result.nspname, result.relname),
498499
stmt=psycopg.sql.SQL(result.viewdef),

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ pgcli = ["pgclirc", "packages/pgliterals/pgliterals.json"]
8484
[tool.ruff]
8585
target-version = 'py39'
8686
line-length = 140
87+
show-fixes = true
8788

8889
[tool.ruff.lint]
8990
select = [

0 commit comments

Comments
 (0)