8 Commits

Author SHA1 Message Date
Jacob Hinkle
8e69ca3390 Many changes to keys and move persist() to fs.py
This fixes a lot of awkwardness that came from having the record()
functionality inside of store.py. It is still broken, but is much closer
to actually working now. I also sketched some data and io functionality,
which has no tests and is not yet working at all.
2022-10-11 12:27:40 -04:00
Jacob Hinkle
07ccef601c Change to using UUID and SHA256 as DB keys
This is important for distributed settings, and will make merging
databases much simpler. This change is pretty extensive and includes a
lot of other stuff like moving some fields between tables, and
introducing the `local_metadata` table which is a key-value store and
holds the uuid of the "local" store, i.e. the one corresponding to the
directory holding that particular nancy.db.
2022-10-10 15:14:47 -04:00
Jacob Hinkle
c4648ec042 Add tox with mypy, fix typehints. Upgrade black pre-commit hook 2022-10-04 20:56:38 -04:00
Jacob Hinkle
36b1038861 Add black as pre-commit hook 2022-09-28 12:30:43 -04:00
cb53db3bcd Added loguru 2022-09-27 11:25:25 -04:00
183e3ed613 Add working FSDiff and new diff command.
This uses colorama so that is added to poetry. Next I'll add the diff
printing to the record command and have the corresponding store method
use the diff as input.
2022-09-23 20:12:10 -04:00
9e7af6b8a1 Fix up poetry/flake, add stubs for some cli functions 2022-09-19 09:31:41 -04:00
cde9a9056c Add poetry setup 2022-09-18 19:41:08 -04:00