Commit Graph

124 Commits

Author SHA1 Message Date
dependabot[bot] f6fe318278 chore: bump loguru from 0.5.3 to 0.6.0 in /shared
Bumps [loguru](https://github.com/Delgan/loguru) from 0.5.3 to 0.6.0.
- [Release notes](https://github.com/Delgan/loguru/releases)
- [Changelog](https://github.com/Delgan/loguru/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/Delgan/loguru/compare/0.5.3...0.6.0)

---
updated-dependencies:
- dependency-name: loguru
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-01 04:23:05 +02:00
Kyle Robbertze c266221165 fix(shared): pin loguru version
Pinned to 0.5.3 until https://github.com/Delgan/loguru/issues/581 is
fixed
2022-01-31 10:12:28 +01:00
jo 7393db50e0 test: require lint to succeed for shared/ and tools/ 2022-01-26 10:15:35 +02:00
jo 9de82bb568 chore: make linters config consistent in pyproject.toml
- remove mypy config from makefile
2022-01-26 10:15:35 +02:00
jo 7988b7467b test: allow to set python linters to fail per app 2022-01-26 10:15:35 +02:00
jo b9502bc203 test(shared): fix linting 2022-01-26 10:15:35 +02:00
jo 1a1f0488d5 test(shared): ignore pylint warning 2022-01-26 10:15:35 +02:00
jo 0f8cb1a5ed chore: set python build system in pyproject.toml
- fix local package install
- local packages requirement url format
2022-01-26 10:15:35 +02:00
jo 441028a1d2 chore: make setup.py file chdir consistent 2022-01-26 10:15:35 +02:00
Jonas L 1924919e18
fix(shared): type is required for default config submodel (#1536)
We cannot load submodels values from environment variables without having the submodel type annotations.
2022-01-24 15:24:16 +02:00
jo 7aba20f1ac test(shared): check config using optional sections
fix missing DatabaseConfig rename
2022-01-24 12:46:40 +02:00
jo b527c2704d feat(shared): add suffix to shared config models 2022-01-21 11:54:00 +02:00
Jonas L 1561353b20
feat(shared): allow cli parametrized decorators (#1527) 2022-01-20 07:30:35 +02:00
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