Closed renovate[bot] closed 4 months ago
Test coverage for 799ba285568de442551d4dcb652f9d6107fb393f
Name Stmts Miss Branch BrPart Cover Missing
-------------------------------------------------------------
src/charm.py 321 27 78 12 90% 186, 194-195, 207, 335->343, 376->381, 393, 575-577, 582-583, 595-597, 602-603, 615-617, 640-642, 684->exit, 694->exit, 724-730, 756->exit, 770-771, 781->exit, 795
src/database.py 30 1 8 1 95% 56
-------------------------------------------------------------
TOTAL 351 28 86 13 91%
Static code analysis report
Run started:2024-05-03 11:31:59.906910
Test results:
No issues identified.
Code scanned:
Total lines of code: 2047
Total lines skipped (#nosec): 3
Total potential issues skipped due to specifically being disabled (e.g., #nosec BXXX): 0
Run metrics:
Total issues (by severity):
Undefined: 0
Low: 0
Medium: 0
High: 0
Total issues (by confidence):
Undefined: 0
Low: 0
Medium: 0
High: 0
Files skipped (0):
This PR contains the following updates:
==2.6.4
->==2.7.1
Release Notes
pydantic/pydantic (pydantic)
### [`v2.7.1`](https://togithub.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v271-2024-04-23) [Compare Source](https://togithub.com/pydantic/pydantic/compare/v2.7.0...v2.7.1) [GitHub release](https://togithub.com/pydantic/pydantic/releases/tag/v2.7.1) ##### What's Changed ##### Packaging - Bump `pydantic-core` to `v2.18.2` by [@sydney-runkle](https://togithub.com/sydney-runkle) in [#9307](https://togithub.com/pydantic/pydantic/pull/9307) ##### New Features - Ftp and Websocket connection strings support by [@CherrySuryp](https://togithub.com/CherrySuryp) in [#9205](https://togithub.com/pydantic/pydantic/pull/9205) ##### Changes - Use field description for RootModel schema description when there is `…` by [@LouisGobert](https://togithub.com/LouisGobert) in [#9214](https://togithub.com/pydantic/pydantic/pull/9214) ##### Fixes - Fix `validation_alias` behavior with `model_construct` for `AliasChoices` and `AliasPath` by [@sydney-runkle](https://togithub.com/sydney-runkle) in [#9223](https://togithub.com/pydantic/pydantic/pull/9223) - Revert `typing.Literal` and import it outside the TYPE_CHECKING block by [@frost-nzcr4](https://togithub.com/frost-nzcr4) in [#9232](https://togithub.com/pydantic/pydantic/pull/9232) - Fix `Secret` serialization schema, applicable for unions by [@sydney-runkle](https://togithub.com/sydney-runkle) in [#9240](https://togithub.com/pydantic/pydantic/pull/9240) - Fix `strict` application to `function-after` with `use_enum_values` by [@sydney-runkle](https://togithub.com/sydney-runkle) in [#9279](https://togithub.com/pydantic/pydantic/pull/9279) - Address case where `model_construct` on a class which defines `model_post_init` fails with `AttributeError` by [@babygrimes](https://togithub.com/babygrimes) in [#9168](https://togithub.com/pydantic/pydantic/pull/9168) - Fix `model_json_schema` with config types by [@NeevCohen](https://togithub.com/NeevCohen) in [#9287](https://togithub.com/pydantic/pydantic/pull/9287) - Support multiple zeros as an `int` by [@samuelcolvin](https://togithub.com/samuelcolvin) in [pydantic/pydantic-core#1269](https://togithub.com/pydantic/pydantic-core/pull/1269) - Fix validation of `int`s with leading unary plus by [@cknv](https://togithub.com/cknv) in [pydantic/pydantic-core#1272](https://togithub.com/pydantic/pydantic-core/pull/1272) - Fix interaction between `extra != 'ignore'` and `from_attributes=True` by [@davidhewitt](https://togithub.com/davidhewitt) in [pydantic/pydantic-core#1276](https://togithub.com/pydantic/pydantic-core/pull/1276) - Handle error from `Enum`'s `missing` function as `ValidationError` by [@sydney-runkle](https://togithub.com/sydney-runkle) in [pydantic/pydantic-core#1274](https://togithub.com/pydantic/pydantic-core/pull/1754) - Fix memory leak with `Iterable` validation by [@davidhewitt](https://togithub.com/davidhewitt) in [pydantic/pydantic-core#1271](https://togithub.com/pydantic/pydantic-core/pull/1751) ##### New Contributors - [@zzstoatzz](https://togithub.com/zzstoatzz) made their first contribution in [#9219](https://togithub.com/pydantic/pydantic/pull/9219) - [@frost-nzcr4](https://togithub.com/frost-nzcr4) made their first contribution in [#9232](https://togithub.com/pydantic/pydantic/pull/9232) - [@CherrySuryp](https://togithub.com/CherrySuryp) made their first contribution in [#9205](https://togithub.com/pydantic/pydantic/pull/9205) - [@vagenas](https://togithub.com/vagenas) made their first contribution in [#9268](https://togithub.com/pydantic/pydantic/pull/9268) - [@ollz272](https://togithub.com/ollz272) made their first contribution in [#9262](https://togithub.com/pydantic/pydantic/pull/9262) - [@babygrimes](https://togithub.com/babygrimes) made their first contribution in [#9168](https://togithub.com/pydantic/pydantic/pull/9168) - [@swelborn](https://togithub.com/swelborn) made their first contribution in [#9296](https://togithub.com/pydantic/pydantic/pull/9296) - [@kf-novi](https://togithub.com/kf-novi) made their first contribution in [#9236](https://togithub.com/pydantic/pydantic/pull/9236) - [@lgeiger](https://togithub.com/lgeiger) made their first contribution in [#9288](https://togithub.com/pydantic/pydantic/pull/9288) ### [`v2.7.0`](https://togithub.com/pydantic/pydantic/blob/HEAD/HISTORY.md#v270-2024-04-11) [Compare Source](https://togithub.com/pydantic/pydantic/compare/v2.6.4...v2.7.0) [GitHub release](https://togithub.com/pydantic/pydantic/releases/tag/v2.7.0) The code released in v2.7.0 is practically identical to that of v2.7.0b1. ##### What's Changed ##### Packaging - Reorganize `pyproject.toml` sections by [@Viicos](https://togithub.com/Viicos) in [#8899](https://togithub.com/pydantic/pydantic/pull/8899) - Bump `pydantic-core` to `v2.18.1` by [@sydney-runkle](https://togithub.com/sydney-runkle) in [#9211](https://togithub.com/pydantic/pydantic/pull/9211) - Adopt `jiter` `v0.2.0` by [@samuelcolvin](https://togithub.com/samuelcolvin) in [pydantic/pydantic-core#1250](https://togithub.com/pydantic/pydantic-core/pull/1250) ##### New Features - Extract attribute docstrings from `FieldInfo.description` by [@Viicos](https://togithub.com/Viicos) in [#6563](https://togithub.com/pydantic/pydantic/pull/6563) - Add a `with_config` decorator to comply with typing spec by [@Viicos](https://togithub.com/Viicos) in [#8611](https://togithub.com/pydantic/pydantic/pull/8611) - Allow an optional separator splitting the value and unit of the result of `ByteSize.human_readable` by [@jks15satoshi](https://togithub.com/jks15satoshi) in [#8706](https://togithub.com/pydantic/pydantic/pull/8706) - Add generic `Secret` base type by [@conradogarciaberrotaran](https://togithub.com/conradogarciaberrotaran) in [#8519](https://togithub.com/pydantic/pydantic/pull/8519) - Make use of `Sphinx` inventories for cross references in docs by [@Viicos](https://togithub.com/Viicos) in [#8682](https://togithub.com/pydantic/pydantic/pull/8682) - Add environment variable to disable plugins by [@geospackle](https://togithub.com/geospackle) in [#8767](https://togithub.com/pydantic/pydantic/pull/8767) - Add support for `deprecated` fields by [@Viicos](https://togithub.com/Viicos) in [#8237](https://togithub.com/pydantic/pydantic/pull/8237) - Allow `field_serializer('*')` by [@ornariece](https://togithub.com/ornariece) in [#9001](https://togithub.com/pydantic/pydantic/pull/9001) - Handle a case when `model_config` is defined as a model property by [@alexeyt101](https://togithub.com/alexeyt101) in [#9004](https://togithub.com/pydantic/pydantic/pull/9004) - Update `create_model()` to support `typing.Annotated` as input by [@wannieman98](https://togithub.com/wannieman98) in [#8947](https://togithub.com/pydantic/pydantic/pull/8947) - Add `ClickhouseDsn` support by [@solidguy7](https://togithub.com/solidguy7) in [#9062](https://togithub.com/pydantic/pydantic/pull/9062) - Add support for `re.Pattern[str]` to `pattern` field by [@jag-k](https://togithub.com/jag-k) in [#9053](https://togithub.com/pydantic/pydantic/pull/9053) - Support for `serialize_as_any` runtime setting by [@sydney-runkle](https://togithub.com/sydney-runkle) in [#8830](https://togithub.com/pydantic/pydantic/pull/8830) - Add support for `typing.Self` by [@Youssefares](https://togithub.com/Youssefares) in [#9023](https://togithub.com/pydantic/pydantic/pull/9023) - Ability to pass `context` to serialization by [@ornariece](https://togithub.com/ornariece) in [#8965](https://togithub.com/pydantic/pydantic/pull/8965) - Add feedback widget to docs with flarelytics integration by [@sydney-runkle](https://togithub.com/sydney-runkle) in [#9129](https://togithub.com/pydantic/pydantic/pull/9129) - Support for parsing partial JSON strings in Python by [@samuelcolvin](https://togithub.com/samuelcolvin) in [pydantic/jiter#66](https://togithub.com/pydantic/jiter/pull/66) **Finalized in v2.7.0, rather than v2.7.0b1:** - Add support for field level number to str coercion option by [@NeevCohen](https://togithub.com/NeevCohen) in [#9137](https://togithub.com/pydantic/pydantic/pull/9137) - Update `warnings` parameter for serialization utilities to allow raising a warning by [@Lance-Drane](https://togithub.com/Lance-Drane) in [#9166](https://togithub.com/pydantic/pydantic/pull/9166) ##### Changes - Correct docs, logic for `model_construct` behavior with `extra` by [@sydney-runkle](https://togithub.com/sydney-runkle) in [#8807](https://togithub.com/pydantic/pydantic/pull/8807) - Improve error message for improper `RootModel` subclasses by [@sydney-runkle](https://togithub.com/sydney-runkle) in [#8857](https://togithub.com/pydantic/pydantic/pull/8857) - Use `PEP570` syntax by [@Viicos](https://togithub.com/Viicos) in [#8940](https://togithub.com/pydantic/pydantic/pull/8940) - Add `enum` and `type` to the JSON schema for single item literals by [@dmontagu](https://togithub.com/dmontagu) in [#8944](https://togithub.com/pydantic/pydantic/pull/8944) - Deprecate `update_json_schema` internal function by [@sydney-runkle](https://togithub.com/sydney-runkle) in [#9125](https://togithub.com/pydantic/pydantic/pull/9125) - Serialize duration to hour minute second, instead of just seconds by [@kakilangit](https://togithub.com/kakilangit) in [pydantic/speedate#50](https://togithub.com/pydantic/speedate/pull/50) - Trimming str before parsing to int and float by [@hungtsetse](https://togithub.com/hungtsetse) in [pydantic/pydantic-core#1203](https://togithub.com/pydantic/pydantic-core/pull/1203) ##### Performance - `enum` validator improvements by [@samuelcolvin](https://togithub.com/samuelcolvin) in [#9045](https://togithub.com/pydantic/pydantic/pull/9045) - Move `enum` validation and serialization to Rust by [@samuelcolvin](https://togithub.com/samuelcolvin) in [#9064](https://togithub.com/pydantic/pydantic/pull/9064) - Improve schema generation for nested dataclasses by [@sydney-runkle](https://togithub.com/sydney-runkle) in [#9114](https://togithub.com/pydantic/pydantic/pull/9114) - Fast path for ASCII python string creation in JSON by [@samuelcolvin](https://togithub.com/samuelcolvin) in in [pydantic/jiter#72](https://togithub.com/pydantic/jiter/pull/72) - SIMD integer and string JSON parsing on `aarch64`(**Note:** SIMD on x86 will be implemented in a future release) by [@samuelcolvin](https://togithub.com/samuelcolvin) in in [pydantic/jiter#65](https://togithub.com/pydantic/jiter/pull/65) - Support JSON `CowConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.