Sean Breckenridge
4b4cb7cb5b
cli/query: bugfix where datetime was ignored
2021-04-19 20:21:17 +01:00
Sean Breckenridge
277f0e3988
cli/query: interactive fallback, improve guess_stats ( #163 )
2021-04-19 18:57:42 +01:00
Sean Breckenridge
fb49243005
core: add hpi query command ( #157 )
...
- restructure query code for cli, some test fixes
- initial query_range implementation
refactored functions in query some more
to allow re-use in range_range, select()
pretty much just calls out to a bunch
of handlers now
2021-04-06 17:19:58 +01:00
Sean Breckenridge
349ab78fca
core/cli: switch to using click library #155
...
everything is backwards-compatible with the previous
interface, the only minor changes were to the doctor cmd
which can now accept more than one item to run,
and the --skip-config-check to skip the config_ok
check if the user specifies to
added a test using click.testing.CliRunner (tests
the CLI in an isolated environment), though
additional tests which aren't testing the CLI
itself (parsing arguments or decorator behaviour)
can just call the functions themselves, as they
no longer accept a argparser.Namespace and instead
accept the direct arguments
2021-04-04 10:06:59 +01:00
Dima Gerasimov
8d6f691824
core: feature: guess module stats from typing annotations
2021-03-15 10:27:18 +00:00
Dima Gerasimov
0534c5c57d
cli: add 'hpi module install' and 'hpi module requires'
...
ci: use hpi module install; remove explicit module links
relevant:
- https://github.com/karlicoss/HPI/issues/12
- https://github.com/karlicoss/HPI/issues/79
2021-02-18 02:04:40 +00:00
Dima Gerasimov
4ad4f34cda
core: improve mypy coverage
2021-02-18 02:04:40 +00:00
Dima Gerasimov
df9a7f7390
core.pandas: add check for 'error' column + add empty one by default
2021-02-14 16:20:38 +00:00
Dima Gerasimov
29ad315578
core/cli: some enhacements for frendlier errors/default config
...
see https://github.com/karlicoss/HPI/issues/110
2020-11-23 20:46:26 +01:00
Dima Gerasimov
ed4b6c409f
doctor & stat improvements
...
- doctor: log when there is no stats() function and suggest to use it
- check that stats() result isn't None
- warn when there is not data in the iterable
2020-11-01 02:02:43 +01:00
Dima Gerasimov
2619af7ae7
doctor: warn if the default config is used
2020-11-01 02:02:43 +01:00
Dima Gerasimov
209cffb476
doctor: print import order
2020-10-09 23:22:00 +02:00
Dima Gerasimov
bdb5dcd221
my.calendar.holidays: cleanup + ci/stats + split off private data handling to https://github.com/karlicoss/hpi-personal-overlay
2020-10-09 23:22:00 +02:00
Dima Gerasimov
ed25fc2eeb
cli: tabulate warnings for cleaner visual output; add --quick flag for doctor
2020-09-30 21:54:09 +02:00
Dima Gerasimov
3b9941e9ee
cli: add --all for doctor/modules command
2020-09-30 21:54:09 +02:00
Dima Gerasimov
4b49add746
core: more consistent module detection logic
2020-09-30 21:54:09 +02:00
Dima Gerasimov
70c801f692
core: add 'core' config section, add disabled_modules/enabled_modules configs, use them for hpi modules and hpi doctor
2020-09-30 21:54:09 +02:00
Dima Gerasimov
132db1dc0c
core: add pandas utils
2020-09-17 21:39:14 +01:00
Sean Breckenridge
78489157a1
fix spelling mistakes
2020-09-06 20:44:28 +01:00
Dima Gerasimov
6b548c24c1
doctor: better mypy detection
2020-07-26 21:31:26 +01:00
Dima Gerasimov
5eecd8721d
cli: check specific module with doctor; print help on no command
2020-07-06 21:40:41 +01:00
Dima Gerasimov
1cc4eb5d8d
core: add helper for computing stats; use it in modules
2020-06-04 22:19:34 +01:00
Dima Gerasimov
e351c8ba49
cli: add 'config init' command
2020-05-25 12:25:41 +01:00
Dima Gerasimov
7bd7cc9228
cli: integrate with stats reported by the modules
2020-05-25 11:46:30 +01:00
Dima Gerasimov
d890599c7c
cli: add checks for importing modules
2020-05-25 11:41:44 +01:00
Dima Gerasimov
8019389ccb
cli: move doctor to core, add doc
2020-05-25 10:17:40 +01:00