diff --git a/setup.py b/setup.py index 0ade8fc3..9a3f4ff3 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ def get_long_description(): "pluggy", ], extras_require={ - "test": ["pytest", "black", "hypothesis", "cogapp"], + "test": ["pytest", "black>=24.1.1", "hypothesis", "cogapp"], "docs": [ "furo", "sphinx-autobuild", diff --git a/sqlite_utils/db.py b/sqlite_utils/db.py index 371eed9c..5323c51b 100644 --- a/sqlite_utils/db.py +++ b/sqlite_utils/db.py @@ -930,9 +930,9 @@ def sort_key(p): " [{column_name}] {column_type}{column_extras}".format( column_name=column_name, column_type=COLUMN_TYPE_MAPPING[column_type], - column_extras=(" " + " ".join(column_extras)) - if column_extras - else "", + column_extras=( + (" " + " ".join(column_extras)) if column_extras else "" + ), ) ) extra_pk = "" @@ -1481,9 +1481,11 @@ def __init__( def __repr__(self) -> str: return "