Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit b2ce754

Browse files
vvkhgithub-actions[bot]
authored andcommitted
style fixes by ruff
1 parent 3ce1832 commit b2ce754

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

data_diff/databases/postgresql.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,7 @@ def select_table_schema(self, path: DbPath) -> str:
190190
if database:
191191
info_schema_path.insert(0, database)
192192

193-
return (
194-
f"""
193+
return f"""
195194
SELECT column_name, data_type, datetime_precision,
196195
CASE
197196
WHEN data_type = 'numeric'
@@ -206,7 +205,6 @@ def select_table_schema(self, path: DbPath) -> str:
206205
FROM {'.'.join(info_schema_path)}
207206
WHERE table_name = '{table}' AND table_schema = '{schema}'
208207
"""
209-
)
210208

211209
def select_table_unique_columns(self, path: DbPath) -> str:
212210
database, schema, table = self._normalize_table_path(path)

tests/test_database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def test_specified_precision(self):
146146
t = table(name)
147147
raw_schema = db.query_table_schema(t.path)
148148
schema = db._process_table_schema(t.path, raw_schema)
149-
self.assertEqual(schema["value"].precision, 2)
149+
self.assertEqual(schema["value"].precision, 2)
150150

151151
def test_specified_zero_precision(self):
152152
name = "tbl_" + random_table_suffix()

0 commit comments

Comments
 (0)