Skip to content

Commit 6fe635a

Browse files
committed
Fix Black formatting issues
- Format singleton tests and repository implementation - Ensure all files meet Black formatting requirements
1 parent b849aec commit 6fe635a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/patterns/repository.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ def _init_db(self):
710710
conn = self._connection
711711
else:
712712
conn = sqlite3.connect(self.db_path)
713-
713+
714714
conn.execute(
715715
"""
716716
CREATE TABLE IF NOT EXISTS users (
@@ -722,7 +722,7 @@ def _init_db(self):
722722
"""
723723
)
724724
conn.commit()
725-
725+
726726
# Only close if not in-memory
727727
if self.db_path != ":memory:":
728728
conn.close()
@@ -733,7 +733,7 @@ def _get_connection(self):
733733
return self._connection
734734
else:
735735
return sqlite3.connect(self.db_path)
736-
736+
737737
def _close_connection(self, conn):
738738
"""Close database connection if not persistent."""
739739
if not self._connection:

tests/test_patterns/test_singleton.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
@singleton
2222
class SerializableService:
2323
"""Test service for serialization testing."""
24+
2425
def __init__(self):
2526
self.data = "test"
2627

0 commit comments

Comments
 (0)