Rename to rainlog, use XDG default DB location, add migrate command #8
Loading…
Reference in a new issue
No description provided.
Delete branch "refs/pull/8/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #7
Summary
weather-tools→rainlog, Python packageweather_tools→rainlog, CLI commandrain→rainlog~/.local/share/rainlog/rainlog.sqlite(XDG user data dir viaplatformdirs)MyWeather.sqlitetorainlog.sqlite;Database.__init__auto-creates the directory on first userainlog migrate [--db-dir PATH]to copy an existingMyWeather.sqliteto the new default location atomicallyTest plan
tests/test_defaults.pycover constants and directory auto-creation (Task 2)tests/test_migrate.pycover migrate happy path, source-missing error, destination-exists error, and legacy-filename check (Task 3)nox -s complexipypasses (no functions exceed complexity threshold)nox -s ruffpassesnox -s typasses