refactor: rename check_migrations → is_migrated
test / unit (pull_request) Successful in 58s
test / integration (pull_request) Successful in 18s
test / coverage (pull_request) Successful in 1m6s
lint / lint (push) Successful in 1m55s
prd-number / assign-numbers (push) Successful in 16s
test / unit (push) Successful in 54s
test / integration (push) Successful in 19s
test / coverage (push) Successful in 1m6s
Update Quality Badges / update-badges (push) Successful in 1m2s

Boolean-returning methods should read as predicates.
Renames DbStore.check_migrations, StoreManager.check_migrations,
and the test patch accordingly.
This commit was merged in pull request #320.
This commit is contained in:
2026-07-06 19:19:49 +00:00
parent 041d9bbbf5
commit 142974a4b8
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ class DbStore:
conn.row_factory = sqlite3.Row
return conn
def check_migrations(self) -> bool:
def is_migrated(self) -> bool:
"""Return True if the DB is fully up-to-date, False if migration is needed."""
if not self.db_path.exists():
return False