Commit Graph

11 Commits

Author SHA1 Message Date
jo 2a8da1e931 test(shared): assert key is from file 2022-01-18 11:14:24 +02:00
jo b1ecf25d6f feat(shared): allow loading from ini config file 2022-01-18 11:14:24 +02:00
jo 65dff91d47 fix(shared): tmp_path fixture type mismatch 2022-01-18 11:14:24 +02:00
jo 100784cb78 fix(shared): prevent child override by empty dict 2022-01-18 11:14:24 +02:00
jo dc93189962 fix(shared): require click >=8.0.3 2022-01-14 19:36:40 +02:00
Jonas L d986302de2
fix: change filepath options type to pathlib.Path (#1506) 2022-01-12 23:06:51 +02:00
Jonas L 40130303dd
feat: replace verbosity flag with log-level flag (#1496)
using a string flag is better when using environement variables.
2022-01-08 08:16:08 +02:00
jo ba4eeaaff2 fix(shared): fix tests 2022-01-07 16:50:58 +01:00
Jonas L 501e7844e3
feat(shared): let user provide the log level (#1493)
* feat(shared): let user provide the log level

Simplify the logger setup, as choice should be
left to the user to import or guess  the log level from verbosity.

* fix: linting
2022-01-07 17:35:58 +02:00
Jonas L 48dea6e5d5
feat: enhance libretime shared (#1491)
* feat: allow custom delimiter in BaseConfig

* feat: add default config filepath constant
2022-01-06 16:25:43 +02:00
Jonas L 3a615cafa0
feat: create libretime_shared package (#1349)
* feat: create libretime_shared package

- We don't use pydantic.BaseSettings because of some
  incompatble loading behavior.

* fix: whitelist pydantic in pylintrc

* docs: update to new BaseConfig behavior

* docs: change confusing config filepath
2022-01-06 15:40:52 +02:00