fix(deps): update all non-major dependencies
This MR contains the following updates:
| Package | Type | Update | Change | Age | Confidence |
|---|---|---|---|---|---|
| pre-commit/mirrors-mypy | repository | minor |
v1.4.1 -> v1.18.2
|
||
| pre-commit/pre-commit-hooks | repository | minor |
v4.4.0 -> v4.6.0
|
||
| psf/black | repository | minor |
23.3.0 -> 23.12.1
|
||
| pycqa/flake8 | repository | minor |
6.0.0 -> 6.1.0
|
||
| pydantic (changelog) | dependencies | minor |
2.8.2 -> 2.12.3
|
||
| pydantic-settings (changelog) | dependencies | minor |
2.4.0 -> 2.11.0
|
||
| python-gitlab (changelog) | dependencies | minor |
4.10.0 -> 4.13.0
|
||
| python-poetry/poetry | repository | patch |
1.8.2 -> 1.8.5
|
||
| registry.gitlab.developers.cam.ac.uk/uis/devops/lib/ucam-faas-python | final | minor |
0.7.1 -> 0.17.5
|
||
| timothycrosley/isort | repository | minor |
5.12.0 -> 5.13.2
|
||
| ucam-faas | dependencies | minor |
^0.7.1 -> ^0.17.0
|
||
| ucam-identitylib | dependencies | minor |
3.3.1 -> 3.4.0
|
||
| ucam-observe | dependencies | patch |
0.2.0 -> 0.2.1
|
||
| uis/devops/continuous-delivery/ci-templates | repository | minor |
v7.6.0 -> v7.19.2
|
Note: The pre-commit manager in Renovate is not supported by the pre-commit maintainers or community. Please do not report any problems there, instead create a Discussion in the Renovate repository if you have any questions.
Release Notes
pre-commit/mirrors-mypy (pre-commit/mirrors-mypy)
v1.18.2
v1.18.1
v1.17.1
v1.17.0
v1.16.1
v1.16.0
v1.15.0
v1.14.1
v1.14.0
v1.13.0
v1.12.1
v1.12.0
v1.11.2
v1.11.1
v1.11.0
v1.10.1
v1.10.0
v1.9.0
v1.8.0
v1.7.1
v1.7.0
v1.6.1
v1.6.0
v1.5.1
v1.5.0
pre-commit/pre-commit-hooks (pre-commit/pre-commit-hooks)
v4.6.0: pre-commit-hooks v4.6.0
Features
-
requirements-txt-fixer: remove duplicate packages.- #1014 MR by @vhoulbreque-withings.
- #960 issue @csibe17.
Migrating
-
fix-encoding-pragma: deprecated -- will be removed in 5.0.0. use pyupgrade or some other tool.
v4.5.0: pre-commit-hooks v4.5.0
Features
-
requirements-txt-fixer: also sortconstraints.txtby default.- #857 MR by @lev-blit.
- #830 issue by @PLPeeters.
-
debug-statements: addbpdbdebugger.
Fixes
-
file-contents-sorter: fix sorting an empty file.- #944 MR by @RoelAdriaans.
- #935 issue by @paduszyk.
-
double-quote-string-fixer: don't rewrite inside f-strings in 3.12+.- #973 MR by @asottile.
- #971 issue by @XuehaiPan.
Migrating
- now requires python >= 3.8.
- #926 MR by @asottile.
- #927 MR by @asottile.
psf/black (psf/black)
v23.12.1
Packaging
- Fixed a bug that included dependencies from the
dextra by default (#4108)
v23.12.0
Highlights
It's almost 2024, which means it's time for a new edition of Black's stable style! Together with this release, we'll put out an alpha release 24.1a1 showcasing the draft 2024 stable style, which we'll finalize in the January release. Please try it out and share your feedback.
This release (23.12.0) will still produce the 2023 style. Most but not all of the
changes in --preview mode will be in the 2024 stable style.
Stable style
- Fix bug where
# fmt: offautomatically dedents when used with the--line-rangesoption, even when it is not within the specified line range. (#4084) - Fix feature detection for parenthesized context managers (#4104)
Preview style
- Prefer more equal signs before a break when splitting chained assignments (#4010)
- Standalone form feed characters at the module level are no longer removed (#4021)
- Additional cases of immediately nested tuples, lists, and dictionaries are now indented less (#4012)
- Allow empty lines at the beginning of all blocks, except immediately before a docstring (#4060)
- Fix crash in preview mode when using a short
--line-length(#4086) - Keep suites consisting of only an ellipsis on their own lines if they are not functions or class definitions (#4066) (#4103)
Configuration
-
--line-rangesnow skips Black's internal stability check in--safemode. This avoids a crash on rare inputs that have many unformatted same-content lines. (#4034)
Packaging
- Upgrade to mypy 1.7.1 (#4049) (#4069)
- Faster compiled wheels are now available for CPython 3.12 (#4070)
Integrations
- Enable 3.12 CI (#4035)
- Build docker images in parallel (#4054)
- Build docker images with 3.12 (#4055)
v23.11.0
Highlights
- Support formatting ranges of lines with the new
--line-rangescommand-line option (#4020)
Stable style
- Fix crash on formatting bytes strings that look like docstrings (#4003)
- Fix crash when whitespace followed a backslash before newline in a docstring (#4008)
- Fix standalone comments inside complex blocks crashing Black (#4016)
- Fix crash on formatting code like
await (a ** b)(#3994) - No longer treat leading f-strings as docstrings. This matches Python's behaviour and fixes a crash (#4019)
Preview style
- Multiline dicts and lists that are the sole argument to a function are now indented less (#3964)
- Multiline unpacked dicts and lists as the sole argument to a function are now also indented less (#3992)
- In f-string debug expressions, quote types that are visible in the final string are now preserved (#4005)
- Fix a bug where long
caseblocks were not split into multiple lines. Also enable general trailing comma rules oncaseblocks (#4024) - Keep requiring two empty lines between module-level docstring and first function or class definition (#4028)
- Add support for single-line format skip with other comments on the same line (#3959)
Configuration
- Consistently apply force exclusion logic before resolving symlinks (#4015)
- Fix a bug in the matching of absolute path names in
--include(#3976)
Performance
- Fix mypyc builds on arm64 on macOS (#4017)
Integrations
- Black's pre-commit integration will now run only on git hooks appropriate for a code formatter (#3940)
v23.10.1
Highlights
- Maintenance release to get a fix out for GitHub Action edge case (#3957)
Preview style
- Fix merging implicit multiline strings that have inline comments (#3956)
- Allow empty first line after block open before a comment or compound statement (#3967)
Packaging
- Change Dockerfile to hatch + compile black (#3965)
Integrations
- The summary output for GitHub workflows is now suppressible using the
summaryparameter. (#3958) - Fix the action failing when Black check doesn't pass (#3957)
Documentation
- It is known Windows documentation CI is broken https://github.com/psf/black/issues/3968
v23.10.0
Stable style
- Fix comments getting removed from inside parenthesized strings (#3909)
Preview style
- Fix long lines with power operators getting split before the line length (#3942)
- Long type hints are now wrapped in parentheses and properly indented when split across multiple lines (#3899)
- Magic trailing commas are now respected in return types. (#3916)
- Require one empty line after module-level docstrings. (#3932)
- Treat raw triple-quoted strings as docstrings (#3947)
Configuration
- Fix cache versioning logic when
BLACK_CACHE_DIRis set (#3937)
Parser
- Fix bug where attributes named
typewere not accepted insidematchstatements (#3950) - Add support for PEP 695 type aliases containing lambdas and other unusual expressions (#3949)
Output
- Black no longer attempts to provide special errors for attempting to format Python 2 code (#3933)
- Black will more consistently print stacktraces on internal errors in verbose mode (#3938)
Integrations
- The action output displayed in the job summary is now wrapped in Markdown (#3914)
v23.9.1
Due to various issues, the previous release (23.9.0) did not include compiled mypyc wheels, which make Black significantly faster. These issues have now been fixed, and this release should come with compiled wheels once again.
There will be no wheels for Python 3.12 due to a bug in mypyc. We will provide 3.12 wheels in a future release as soon as the mypyc bug is fixed.
Packaging
- Upgrade to mypy 1.5.1 (#3864)
Performance
- Store raw tuples instead of NamedTuples in Black's cache, improving performance and decreasing the size of the cache (#3877)
v23.9.0
Preview style
- More concise formatting for dummy implementations (#3796)
- In stub files, add a blank line between a statement with a body (e.g an
if sys.version_info > (3, x):) and a function definition on the same level (#3862) - Fix a bug whereby spaces were removed from walrus operators within subscript(#3823)
Configuration
- Black now applies exclusion and ignore logic before resolving symlinks (#3846)
Performance
- Avoid importing
IPythonif notebook cells do not contain magics (#3782) - Improve caching by comparing file hashes as fallback for mtime and size (#3821)
Blackd
- Fix an issue in
blackdwith single character input (#3558)
Integrations
- Black now has an
official pre-commit mirror. Swapping
https://github.com/psf/blacktohttps://github.com/psf/black-pre-commit-mirrorin your.pre-commit-config.yamlwill make Black about 2x faster (#3828) - The
.black.envfolder specified byENV_PATHwill now be removed on the completion of the GitHub Action (#3759)
v23.7.0
Highlights
- Runtime support for Python 3.7 has been removed. Formatting 3.7 code will still be supported until further notice (#3765)
Stable style
- Fix a bug where an illegal trailing comma was added to return type annotations using PEP 604 unions (#3735)
- Fix several bugs and crashes where comments in stub files were removed or mishandled under some circumstances (#3745)
- Fix a crash with multi-line magic comments like
type: ignorewithin parentheses (#3740) - Fix error in AST validation when Black removes trailing whitespace in a type comment (#3773)
Preview style
- Implicitly concatenated strings used as function args are no longer wrapped inside parentheses (#3640)
- Remove blank lines between a class definition and its docstring (#3692)
Configuration
- The
--workersargument to Black can now be specified via theBLACK_NUM_WORKERSenvironment variable (#3743) -
.pytest_cache,.ruff_cacheand.vscodeare now excluded by default (#3691) - Fix Black not honouring
pyproject.tomlsettings when running--stdin-filenameand thepyproject.tomlfound isn't in the current working directory (#3719) -
Black will now error if
excludeandextend-excludehave invalid data types inpyproject.toml, instead of silently doing the wrong thing (#3764)
Packaging
- Upgrade mypyc from 0.991 to 1.3 (#3697)
- Remove patching of Click that mitigated errors on Python 3.6 with
LANG=C(#3768)
Parser
- Add support for the new PEP 695 syntax in Python 3.12 (#3703)
Performance
- Speed up Black significantly when the cache is full (#3751)
- Avoid importing
IPythonin a case where we wouldn't need it (#3748)
Output
- Use aware UTC datetimes internally, avoids deprecation warning on Python 3.12 (#3728)
- Change verbose logging to exactly mirror Black's logic for source discovery (#3749)
Blackd
- The
blackdargument parser now shows the default values for options in their help text (#3712)
Integrations
- Black is now tested with
PYTHONWARNDEFAULTENCODING = 1(#3763) - Update GitHub Action to display black output in the job summary (#3688)
Documentation
pydantic/pydantic (pydantic)
v2.12.3
What's Changed
This is the third 2.12 patch release, fixing issues related to the FieldInfo class, and reverting a change to the supported
after model validator function signatures.
- Raise a warning when an invalid after model validator function signature is raised by @Viicos in #12414. Starting in 2.12.0, using class methods for after model validators raised an error, but the error wasn't raised concistently. We decided to emit a deprecation warning instead.
- Add
FieldInfo.asdict()method, improve documentation aroundFieldInfoby @Viicos in #12411. This also add back support for mutations onFieldInfoclasses, that are reused asAnnotatedmetadata. However, note that this is still not a supported pattern. Instead, please refer to the added example in the documentation.
The blog post section on changes was also updated to document the changes related to serialize_as_any.
v2.12.2
What's Changed
Fixes
- Release a new
pydantic-coreversion, as a corrupted CPython 3.10manylinux2014_aarch64wheel got uploaded (pydantic-core#1843). - Fix issue with recursive generic models with a parent model class by @Viicos in #12398
v2.12.1
What's Changed
This is the first 2.12 patch release, addressing most (but not all yet) regressions from the initial 2.12.0 release.
Fixes
- Do not evaluate annotations when inspecting validators and serializers by @Viicos in #12355
- Make sure
Noneis converted asNoneTypein Python 3.14 by @Viicos in #12370 - Backport V1 runtime warning when using Python 3.14 by @Viicos in #12367
- Fix error message for invalid validator signatures by @Viicos in #12366
- Populate field name in
ValidationInfofor validation of default value by @Viicos in pydantic-core#1826 - Encode credentials in
MultiHostUrlbuilder by @willswire in pydantic-core#1829 - Respect field serializers when using
serialize_as_anyserialization flag by @davidhewitt in pydantic-core#1829 - Fix various
RootModelserialization issues by @davidhewitt in pydantic-core#1836
New Contributors
- @willswire made their first contribution in pydantic-core#1829
v2.12.0
What's Changed
This is the final 2.12 release. It features the work of 20 external contributors and provides useful new features, along with initial Python 3.14 support. Several minor changes (considered non-breaking changes according to our versioning policy) are also included in this release. Make sure to look into them before upgrading.
Note that Pydantic V1 is not compatible with Python 3.14 and greater.
Changes (see the alpha and beta releases for additional changes since 2.11):
Packaging
New Features
- Add
extraparameter to the validate functions by @anvilpete in #12233 - Add
exclude_computed_fieldsserialization option by @Viicos in #12334 - Add
preverse_empty_pathURL options by @Viicos in #12336 - Add
union_formatparameter to JSON Schema generation by @Viicos in #12147 - Add
__qualname__parameter forcreate_modelby @Atry in #12001
Fixes
- Do not try to infer name from lambda definitions in pipelines API by @Viicos in #12289
- Use proper namespace for functions in
TypeAdapterby @Viicos in #12324 - Use
Anyfor context type annotation inTypeAdapterby @inducer in #12279 - Expose
FieldInfoinpydantic.fields.__all__by @Viicos in #12339 - Respect
validation_aliasin@validate_callby @Viicos in #12340 - Use
Anyas context annotation in plugin API by @Viicos in #12341 - Use proper
stacklevelin warnings when possible by @Viicos in #12342
New Contributors
- @anvilpete made their first contribution in #12233
- @JonathanWindell made their first contribution in #12327
- @inducer made their first contribution in #12279
- @Atry made their first contribution in #12001
v2.11.10
What's Changed
Fixes
- Backport v1.10.24 changes by @Viicos
v2.11.9: 2025-09-13
What's Changed
Fixes
- Backport v1.10.23 changes by @Viicos
Full Changelog: https://github.com/pydantic/pydantic/compare/v2.11.8...v2.11.9
v2.11.8: 2025-09-13
v2.11.8 (2025-09-13)
What's Changed
Fixes
Full Changelog: https://github.com/pydantic/pydantic/compare/v2.11.7...v2.11.8
v2.11.7
What's Changed
Fixes
v2.11.6
What's Changed
Fixes
- Rebuild dataclass fields before schema generation by @Viicos in #11949
- Always store the original field assignment on
FieldInfoby @Viicos in #11946
v2.11.5
What's Changed
Fixes
- Check if
FieldInfois complete after applying type variable map by @Viicos in #11855 - Do not delete mock validator/serializer in
model_rebuild()by @Viicos in #11890 - Do not duplicate metadata on model rebuild by @Viicos in #11902
v2.11.4
What's Changed
Packaging
Changes
- Allow config and bases to be specified together in
create_model()by @Viicos in #11714. This change was backported as it was previously possible (although not meant to be supported) to providemodel_configas a field, which would make it possible to provide both configuration and bases.
Fixes
- Remove generics cache workaround by @Viicos in #11755
- Remove coercion of decimal constraints by @Viicos in #11772
- Fix crash when expanding root type in the mypy plugin by @Viicos in #11735
- Fix issue with recursive generic models by @Viicos in #11775
- Traverse
function-beforeschemas during schema gathering by @Viicos in #11801
v2.11.3
What's Changed
Packaging
Fixes
v2.11.2
What's Changed
Fixes
- Bump
pydantic-coreto v2.33.1 by @Viicos in #11678 - Make sure
__pydantic_private__exists before setting private attributes by @Viicos in #11666 - Do not override
FieldInfo._completewhen using field from parent class by @Viicos in #11668 - Provide the available definitions when applying discriminated unions by @Viicos in #11670
- Do not expand root type in the mypy plugin for variables by @Viicos in #11676
- Mention the attribute name in model fields deprecation message by @Viicos in #11674
- Properly validate parameterized mappings by @Viicos in #11658
v2.11.1
What's Changed
Fixes
- Do not override
'definitions-ref'schemas containing serialization schemas or metadata by @Viicos in #11644
v2.11.0
What's Changed
Pydantic v2.11 is a version strongly focused on build time performance of Pydantic models (and core schema generation in general). See the blog post for more details.
Packaging
New Features
- Add
encoded_string()method to the URL types by @YassinNouh21 in #11580 - Add support for
defer_buildwith@validate_calldecorator by @Viicos in #11584 - Allow
@with_configdecorator to be used with keyword arguments by @Viicos in #11608 - Simplify customization of default value inclusion in JSON Schema generation by @Viicos in #11634
- Add
generate_arguments_schema()function by @Viicos in #11572
Fixes
- Allow generic typed dictionaries to be used for unpacked variadic keyword parameters by @Viicos in #11571
- Fix runtime error when computing model string representation involving cached properties and self-referenced models by @Viicos in #11579
- Preserve other steps when using the ellipsis in the pipeline API by @Viicos in #11626
- Fix deferred discriminator application logic by @Viicos in #11591
New Contributors
- @cmenon12 made their first contribution in #11562
- @Jeukoh made their first contribution in #11611
v2.10.6
What's Changed
Fixes
- Fix JSON Schema reference collection with
'examples'keys by @Viicos in #11325 - Fix url python serialization by @sydney-runkle in #11331
v2.10.5
What's Changed
Fixes
- Remove custom MRO implementation of Pydantic models by @Viicos in #11184
- Fix URL serialization for unions by @sydney-runkle in #11233
v2.10.4
What's Changed
Packaging
- Bump
pydantic-coreto v2.27.2 by @davidhewitt in #11138
Fixes
- Fix for comparison of
AnyUrlobjects by @alexprabhat99 in #11082 - Properly fetch PEP 695 type params for functions, do not fetch annotations from signature by @Viicos in #11093
- Include JSON Schema input core schema in function schemas by @Viicos in #11085
- Add
lento_BaseUrlto avoid TypeError by @Kharianne in #11111 - Make sure the type reference is removed from the seen references by @Viicos in #11143
New Contributors
- @FyZzyss made their first contribution in #10789
- @tamird made their first contribution in #10948
- @felixxm made their first contribution in #11077
- @alexprabhat99 made their first contribution in #11082
- @Kharianne made their first contribution in #11111
v2.10.3
What's Changed
Fixes
- Set fields when
defer_buildis set on Pydantic dataclasses by @Viicos in #10984 - Do not resolve the JSON Schema reference for
dictcore schema keys by @Viicos in #10989 - Use the globals of the function when evaluating the return type for
PlainSerializerandWrapSerializerfunctions by @Viicos in #11008 - Fix host required enforcement for urls to be compatible with v2.9 behavior by @sydney-runkle in #11027
- Add a
default_factory_takes_validated_dataproperty toFieldInfoby @Viicos in #11034 - Fix url json schema in
serializationmode by @sydney-runkle in #11035
v2.10.2
What's Changed
Fixes
- Only evaluate FieldInfo annotations if required during schema building by @Viicos in #10769
- Do not evaluate annotations for private fields by @Viicos in #10962
- Support serialization as any for
Secrettypes andUrltypes by @sydney-runkle in #10947 - Fix type hint of
Field.defaultto be compatible with Python 3.8 and 3.9 by @Viicos in #10972 - Add hashing support for URL types by @sydney-runkle in #10975
- Hide
BaseModel.__replace__definition from type checkers by @Viicos in #10979
v2.10.1
What's Changed
Packaging
- Bump
pydantic-coreversion tov2.27.1by @sydney-runkle in #10938
Fixes
- Use the correct frame when instantiating a parametrized
TypeAdapterby @Viicos in #10893 - Relax check for validated data in
default_factoryutils by @sydney-runkle in #10909 - Fix type checking issue with
model_fieldsandmodel_computed_fieldsby @sydney-runkle in #10911 - Use the parent configuration during schema generation for stdlib
dataclasses by @sydney-runkle in #10928 - Use the
globalsof the function when evaluating the return type of serializers andcomputed_fields by @Viicos in #10929 - Fix URL constraint application by @sydney-runkle in #10922
- Fix URL equality with different validation methods by @sydney-runkle in #10934
- Fix JSON schema title when specified as
''by @sydney-runkle in #10936 - Fix
pythonmode serialization forcomplexinference by @sydney-runkle in pydantic-core#1549
New Contributors
v2.10.0
The code released in v2.10.0 is practically identical to that of v2.10.0b2.
See the v2.10 release blog post for the highlights!
What's Changed
Packaging
- Bump
pydantic-coretov2.27.0by @sydney-runkle in #10825 - Replaced pdm with uv by @frfahim in #10727
New Features
- Support
fractions.Fractionby @sydney-runkle in #10318 - Support
Hashablefor json validation by @sydney-runkle in #10324 - Add a
SocketPathtype forlinuxsystems by @theunkn0wn1 in #10378 - Allow arbitrary refs in JSON schema
examplesby @sydney-runkle in #10417 - Support
defer_buildfor Pydantic dataclasses by @Viicos in #10313 - Adding v1 / v2 incompatibility warning for nested v1 model by @sydney-runkle in #10431
- Add support for unpacked
TypedDictto type hint variadic keyword arguments with@validate_callby @Viicos in #10416 - Support compiled patterns in
protected_namespacesby @sydney-runkle in #10522 - Add support for
propertyNamesin JSON schema by @FlorianSW in #10478 - Adding
__replace__protocol for Python 3.13+ support by @sydney-runkle in #10596 - Expose public
sortmethod for JSON schema generation by @sydney-runkle in #10595 - Add runtime validation of
@validate_callcallable argument by @kc0506 in #10627 - Add
experimental_allow_partialsupport by @samuelcolvin in #10748 - Support default factories taking validated data as an argument by @Viicos in #10678
- Allow subclassing
ValidationErrorandPydanticCustomErrorby @Youssefares in pydantic/pydantic-core#1413 - Add
trailing-stringssupport toexperimental_allow_partialby @sydney-runkle in #10825 - Add
rebuild()method forTypeAdapterand simplifydefer_buildpatterns by @sydney-runkle in #10537 - Improve
TypeAdapterinstance repr by @sydney-runkle in #10872
Changes
- Don't allow customization of
SchemaGeneratoruntil interface is more stable by @sydney-runkle in #10303 - Cleanly
defer_buildonTypeAdapters, removing experimental flag by @sydney-runkle in #10329 - Fix
mroof generic subclass by @kc0506 in #10100 - Strip whitespaces on JSON Schema title generation by @sydney-runkle in #10404
- Use
b64decodeandb64encodeforBase64Bytestype by @sydney-runkle in #10486 - Relax protected namespace config default by @sydney-runkle in #10441
- Revalidate parametrized generics if instance's origin is subclass of OG class by @sydney-runkle in #10666
- Warn if configuration is specified on the
@dataclassdecorator and with the__pydantic_config__attribute by @sydney-runkle in #10406 - Recommend against using
Ellipsis(...) withFieldby @Viicos in #10661 - Migrate to subclassing instead of annotated approach for pydantic url types by @sydney-runkle in #10662
- Change JSON schema generation of
Literals andEnumsby @Viicos in #10692 - Simplify unions involving
AnyorNeverwhen replacing type variables by @Viicos in #10338 - Do not require padding when decoding
base64bytes by @bschoenmaeckers in pydantic/pydantic-core#1448 - Support dates all the way to 1BC by @changhc in pydantic/speedate#77
Performance
- Schema cleaning: skip unnecessary copies during schema walking by @Viicos in #10286
- Refactor namespace logic for annotations evaluation by @Viicos in #10530
- Improve email regexp on edge cases by @AlekseyLobanov in #10601
-
CoreMetadatarefactor with an emphasis on documentation, schema build time performance, and reducing complexity by @sydney-runkle in #10675
Fixes
- Remove guarding check on
computed_fieldwithfield_serializerby @nix010 in #10390 - Fix
Predicateissue inv2.9.0by @sydney-runkle in #10321 - Fixing
annotated-typesbound by @sydney-runkle in #10327 - Turn
tzdatainstall requirement into optionaltimezonedependency by @jakob-keller in #10331 - Use correct types namespace when building
namedtuplecore schemas by @Viicos in #10337 - Fix evaluation of stringified annotations during namespace inspection by @Viicos in #10347
- Fix
IncExtype alias definition by @Viicos in #10339 - Do not error when trying to evaluate annotations of private attributes by @Viicos in #10358
- Fix nested type statement by @kc0506 in #10369
- Improve typing of
ModelMetaclass.mroby @Viicos in #10372 - Fix class access of deprecated
computed_fields by @Viicos in #10391 - Make sure
inspect.iscoroutinefunctionworks on coroutines decorated with@validate_callby @MovisLi in #10374 - Fix
NameErrorwhen usingvalidate_callwith PEP 695 on a class by @kc0506 in #10380 - Fix
ZoneInfowith various invalid types by @sydney-runkle in #10408 - Fix
PydanticUserErroron emptymodel_configwith annotations by @cdwilson in #10412 - Fix variance issue in
_IncExtype alias, only allowTrueby @Viicos in #10414 - Fix serialization schema generation when using
PlainValidatorby @Viicos in #10427 - Fix schema generation error when serialization schema holds references by @Viicos in #10444
- Inline references if possible when generating schema for
json_schema_input_typeby @Viicos in #10439 - Fix recursive arguments in
Representationby @Viicos in #10480 - Fix representation for builtin function types by @kschwab in #10479
- Add python validators for decimal constraints (
max_digitsanddecimal_places) by @sydney-runkle in #10506 - Only fetch
__pydantic_core_schema__from the current class during schema generation by @Viicos in #10518 - Fix
stacklevelon deprecation warnings forBaseModelby @sydney-runkle in #10520 - Fix warning
stacklevelinBaseModel.__init__by @Viicos in #10526 - Improve error handling for in-evaluable refs for discriminator application by @sydney-runkle in #10440
- Change the signature of
ConfigWrapper.core_configto take the title directly by @Viicos in #10562 - Do not use the previous config from the stack for dataclasses without config by @Viicos in #10576
- Fix serialization for IP types with
mode='python'by @sydney-runkle in #10594 - Support constraint application for
Base64Etctypes by @sydney-runkle in #10584 - Fix
validate_callignoringFieldinAnnotatedby @kc0506 in #10610 - Raise an error when
Selfis invalid by @kc0506 in #10609 - Using
core_schema.InvalidSchemainstead of metadata injection + checks by @sydney-runkle in #10523 - Tweak type alias logic by @kc0506 in #10643
- Support usage of
typewithtyping.Selfand type aliases by @kc0506 in #10621 - Use overloads for
FieldandPrivateAttrfunctions by @Viicos in #10651 - Clean up the
mypyplugin implementation by @Viicos in #10669 - Properly check for
typing_extensionsvariant ofTypeAliasTypeby @Daraan in #10713 - Allow any mapping in
BaseModel.model_copy()by @Viicos in #10751 - Fix
isinstancebehavior for urls by @sydney-runkle in #10766 - Ensure
cached_propertycan be set on Pydantic models by @Viicos in #10774 - Fix equality checks for primitives in literals by @sydney-runkle in pydantic/pydantic-core#1459
- Properly enforce
host_requiredfor URLs by @Viicos in pydantic/pydantic-core#1488 - Fix when
coerce_numbers_to_strenabled and string has invalid Unicode character by @andrey-berenda in pydantic/pydantic-core#1515 - Fix serializing
complexvalues inEnums by @changhc in pydantic/pydantic-core#1524 - Refactor
_typing_extramodule by @Viicos in #10725 - Support intuitive equality for urls by @sydney-runkle in #10798
- Add
bytearraytoTypeAdapter.validate_jsonsignature by @samuelcolvin in #10802 - Ensure class access of method descriptors is performed when used as a default with
Fieldby @Viicos in #10816 - Fix circular import with
validate_callby @sydney-runkle in #10807 - Fix error when using type aliases referencing other type aliases by @Viicos in #10809
- Fix
IncExtype alias to be compatible with mypy by @Viicos in #10813 - Make
__signature__a lazy property, do not deepcopy defaults by @Viicos in #10818 - Make
__signature__lazy for dataclasses, too by @sydney-runkle in #10832 - Subclass all single host url classes from
AnyUrlto preserve behavior from v2.9 by @sydney-runkle in #10856
New Contributors
- @jakob-keller made their first contribution in #10331
- @MovisLi made their first contribution in #10374
- @joaopalmeiro made their first contribution in #10405
- @theunkn0wn1 made their first contribution in #10378
- @cdwilson made their first contribution in #10412
- @dlax made their first contribution in #10421
- @kschwab made their first contribution in #10479
- @santibreo made their first contribution in #10453
- @FlorianSW made their first contribution in #10478
- @tkasuz made their first contribution in #10555
- @AlekseyLobanov made their first contribution in #10601
- @NiclasvanEyk made their first contribution in #10667
- @mschoettle made their first contribution in #10677
- @Daraan made their first contribution in #10713
- @k4nar made their first contribution in #10736
- @UriyaHarpeness made their first contribution in #10740
- @frfahim made their first contribution in #10727
v2.9.2
What's Changed
Fixes
- Do not error when trying to evaluate annotations of private attributes by @Viicos in #10358
- Adding notes on designing sound
Callablediscriminators by @sydney-runkle in #10400 - Fix serialization schema generation when using
PlainValidatorby @Viicos in #10427 - Fix
Unionserialization warnings by @sydney-runkle in pydantic/pydantic-core#1449 - Fix variance issue in
_IncExtype alias, only allowTrueby @Viicos in #10414 - Fix
ZoneInfovalidation with various invalid types by @sydney-runkle in #10408
v2.9.1
What's Changed
Fixes
- Fix Predicate issue in v2.9.0 by @sydney-runkle in #10321
- Fixing
annotated-typesbound to>=0.6.0by @sydney-runkle in #10327 - Turn
tzdatainstall requirement into optionaltimezonedependency by @jakob-keller in #10331 - Fix
IncExctype alias definition by @Viicos in #10339 - Use correct types namespace when building namedtuple core schemas by @Viicos in #10337
- Fix evaluation of stringified annotations during namespace inspection by @Viicos in #10347
- Fix tagged union serialization with alias generators by @sydney-runkle in pydantic/pydantic-core#1442
v2.9.0
The code released in v2.9.0 is practically identical to that of v2.9.0b2.
What's Changed
Packaging
- Bump
rufftov0.5.0andpyrighttov1.1.369by @sydney-runkle in #9801 - Bump
pydantic-extra-typestov2.9.0by @sydney-runkle in #9832 - Support compatibility with
pdm v2.18.1by @Viicos in #10138 - Bump
v1version stub tov1.10.18by @sydney-runkle in #10214 - Bump
pydantic-coretov2.23.2by @sydney-runkle in #10311
New Features
- Add support for
ZoneInfoby @Youssefares in #9896 - Add
Config.val_json_bytesby @josh-newman in #9770 - Add DSN for Snowflake by @aditkumar72 in #10128
- Support
complexnumber by @changhc in #9654 - Add support for
annotated_types.Notby @aditkumar72 in #10210 - Allow
WithJsonSchemato inject$refs w/httporhttpslinks by @dAIsySHEng1 in #9863 - Allow validators to customize validation JSON schema by @Viicos in #10094
- Support parametrized
PathLiketypes by @nix010 in #9764 - Add tagged union serializer that attempts to use
strorcallablediscriminators to select the correct serializer by @sydney-runkle in in pydantic/pydantic-core#1397
Changes
- Breaking Change: Merge
dicttypejson_schema_extraby @sydney-runkle in #9792- For more info (how to replicate old behavior) on this change, see here
- Refactor annotation injection for known (often generic) types by @sydney-runkle in #9979
- Move annotation compatibility errors to validation phase by @sydney-runkle in #9999
- Improve runtime errors for string constraints like
patternfor incompatible types by @sydney-runkle in #10158 - Remove
'allOf'JSON schema workarounds by @dpeachey in #10029 - Remove
typed_dict_clsdata fromCoreMetadataby @sydney-runkle in #10180 - Deprecate passing a dict to the
Examplesclass by @Viicos in #10181 - Remove
initial_metadatafrom internal metadata construct by @sydney-runkle in #10194 - Use
re.Pattern.searchinstead ofre.Pattern.matchfor consistency withrustbehavior by @tinez in pydantic/pydantic-core#1368 - Show value of wrongly typed data in
pydantic-coreserialization warning by @BoxyUwU in pydantic/pydantic-core#1377 - Breaking Change: in
pydantic-core, changemetadatatype hint in core schemas fromAny->Dict[str, Any] | Noneby @sydney-runkle in pydantic/pydantic-core#1411 - Raise helpful warning when
selfisn't returned from model validator by @sydney-runkle in #10255
Performance
- Initial start at improving import times for modules, using caching primarily by @sydney-runkle in #10009
- Using cached internal import for
BaseModelby @sydney-runkle in #10013 - Simplify internal generics logic - remove generator overhead by @sydney-runkle in #10059
- Remove default module globals from types namespace by @sydney-runkle in #10123
- Performance boost: skip caching parent namespaces in most cases by @sydney-runkle in #10113
- Update ns stack with already copied ns by @sydney-runkle in #10267
Minor Internal Improvements
- ⚡️ Speed up
multiple_of_validator()by 31% inpydantic/_internal/_validators.pyby @misrasaurabh1 in #9839 - ⚡️ Speed up
ModelPrivateAttr.__set_name__()by 18% inpydantic/fields.pyby @misrasaurabh1 in #9841 - ⚡️ Speed up
dataclass()by 7% inpydantic/dataclasses.pyby @misrasaurabh1 in #9843 - ⚡️ Speed up function
_field_name_for_signatureby 37% inpydantic/_internal/_signature.pyby @misrasaurabh1 in #9951 - ⚡️ Speed up method
GenerateSchema._unpack_refs_defsby 26% inpydantic/_internal/_generate_schema.pyby @misrasaurabh1 in #9949 - ⚡️ Speed up function
apply_each_item_validatorsby 100% inpydantic/_internal/_generate_schema.pyby @misrasaurabh1 in #9950 - ⚡️ Speed up method
ConfigWrapper.core_configby 28% inpydantic/_internal/_config.pyby @misrasaurabh1 in #9953
Fixes
- Respect
use_enum_valuesonLiteraltypes by @kwint in #9787 - Prevent type error for exotic
BaseModel/RootModelinheritance by @dmontagu in #9913 - Fix typing issue with field_validator-decorated methods by @dmontagu in #9914
- Replace
strtype annotation withAnyin validator factories in documentation on validators by @maximilianfellhuber in #9885 - Fix
ComputedFieldInfo.wrapped_propertypointer when a property setter is assigned by @tlambert03 in #9892 - Fix recursive typing of
main.IncEnxby @tlambert03 in #9924 - Allow usage of
type[Annotated[...]]by @Viicos in #9932 -
mypyplugin: handle frozen fields on a per-field basis by @dmontagu in #9935 - Fix typo in
invalid-annotated-typeerror code by @sydney-runkle in #9948 - Simplify schema generation for
uuid,url, andiptypes by @sydney-runkle in #9975 - Move
dateschemas to_generate_schema.pyby @sydney-runkle in #9976 - Move
decimal.Decimalvalidation to_generate_schema.pyby @sydney-runkle in #9977 - Simplify IP address schema in
_std_types_schema.pyby @sydney-runkle in #9959 - Fix type annotations for some potentially generic
GenerateSchema.match_typeoptions by @sydney-runkle in #9961 - Add class name to "has conflict" warnings by @msabramo in #9964
- Fix
dataclassignoringdefault_factorypassed in Annotated by @kc0506 in #9971 - Fix
Sequenceignoringdiscriminatorby @kc0506 in #9980 - Fix typing for
IPvAnyAddressandIPvAnyInterfaceby @haoyun in #9990 - Fix false positives on v1 models in
mypyplugin forfrom_ormcheck requiring from_attributes=True config by @radekwlsk in #9938 - Apply
strict=Trueto__init__inmypyplugin by @kc0506 in #9998 - Refactor application of
dequeannotations by @sydney-runkle in #10018 - Raise a better user error when failing to evaluate a forward reference by @Viicos in #10030
- Fix evaluation of
__pydantic_extra__annotation in specific circumstances by @Viicos in #10070 - Fix
frozenenforcement fordataclassesby @sydney-runkle in #10066 - Remove logic to handle unused
__get_pydantic_core_schema__signature by @Viicos in #10075 - Use
is_annotatedconsistently by @Viicos in #10095 - Fix
PydanticDeprecatedSince26typo by @kc0506 in #10101 - Improve
pyrighttests, refactor model decorators signatures by @Viicos in #10092 - Fix
ipserialization logic by @sydney-runkle in #10112 - Warn when frozen defined twice for
dataclassesby @mochi22 in #10082 - Do not compute JSON Schema default when plain serializers are used with
when_usedset to'json-unless-none'and the default value isNoneby @Viicos in #10121 - Fix
ImportStringspecial cases by @sydney-runkle in #10137 - Blacklist default globals to support exotic user code with
__prefixed annotations by @sydney-runkle in #10136 - Handle
nullableschemas withserializationschema available during JSON Schema generation by @Viicos in #10132 - Reorganize
BaseModelannotations by @kc0506 in #10110 - Fix core schema simplification when serialization schemas are involved in specific scenarios by @Viicos in #10155
- Add support for stringified annotations when using
PrivateAttrwithAnnotatedby @Viicos in #10157 - Fix JSON Schema
numbertype for literal and enum schemas by @Viicos in #10172 - Fix JSON Schema generation of fields with plain validators in serialization mode by @Viicos in #10167
- Fix invalid JSON Schemas being generated for functions in certain scenarios by @Viicos in #10188
- Make sure generated JSON Schemas are valid in tests by @Viicos in #10182
- Fix key error with custom serializer by @sydney-runkle in #10200
- Add 'wss' for allowed schemes in NatsDsn by @swelborn in #10224
- Fix
MappingandMutableMappingannotations to use mapping schema instead of dict schema by @sydney-runkle in #10020 - Fix JSON Schema generation for constrained dates by @Viicos in #10185
- Fix discriminated union bug regression when using enums by @kfreezen in pydantic/pydantic-core#1286
- Fix
field_serializerwith computed field when using*by @nix010 in pydantic/pydantic-core#1349 - Try each option in
Unionserializer before inference by @sydney-runkle in pydantic/pydantic-core#1398 - Fix
floatserialization behavior instrictmode by @sydney-runkle in pydantic/pydantic-core#1400 - Introduce
exactnessinto Decimal validation logic to improve union validation behavior by @sydney-runkle in in pydantic/pydantic-core#1405 - Fix new warnings assertions to use
pytest.warns()by @mgorny in #10241 - Fix a crash when cleaning the namespace in
ModelMetaclassby @Viicos in #10242 - Fix parent namespace issue with model rebuilds by @sydney-runkle in #10257
- Remove defaults filter for namespace by @sydney-runkle in #10261
- Use identity instead of equality after validating model in
__init__by @Viicos in #10264 - Support
BigIntserialization forintsubclasses by @kxx317 in pydantic/pydantic-core#1417 - Support signature for wrap validators without
infoby @sydney-runkle in #10277 - Ensure
__pydantic_complete__is set when rebuildingdataclassesby @Viicos in #10291 - Respect
schema_generatorconfig value inTypeAdapterby @sydney-runkle in #10300
New Contributors
pydantic
- @kwint made their first contribution in #9787
- @seekinginfiniteloop made their first contribution in #9822
- @a-alexander made their first contribution in #9848
- @maximilianfellhuber made their first contribution in #9885
- @karmaBonfire made their first contribution in #9945
- @s-rigaud made their first contribution in #9958
- @msabramo made their first contribution in #9964
- @DimaCybr made their first contribution in #9972
- @kc0506 made their first contribution in #9971
- @haoyun made their first contribution in #9990
- @radekwlsk made their first contribution in #9938
- @dpeachey made their first contribution in #10029
- @BoxyUwU made their first contribution in #10085
- @mochi22 made their first contribution in #10082
- @aditkumar72 made their first contribution in #10128
- @changhc made their first contribution in #9654
- @insumanth made their first contribution in #10229
- @AdolfoVillalobos made their first contribution in #10240
- @bllchmbrs made their first contribution in #10270
pydantic-core
- @kfreezen made their first contribution in pydantic/pydantic-core#1286
- @tinez made their first contribution in pydantic/pydantic-core#1368
- @fft001 made their first contribution in pydantic/pydantic-core#1362
- @nix010 made their first contribution in pydantic/pydantic-core#1349
- @BoxyUwU made their first contribution in pydantic/pydantic-core#1379
- @candleindark made their first contribution in pydantic/pydantic-core#1404
- @changhc made their first contribution in pydantic/pydantic-core#1331
pydantic/pydantic-settings (pydantic-settings)
v2.11.0
What's Changed
- CLI Serialize Support by @kschwab in #643
- Inspect type aliases to determine if an annotation is complex by @tselepakis in #644
- Revert "fix: Respect 'cli_parse_args' from model_config with settings_customise_sources (#611)" by @hramezani in #655
- Remove parsing of command line arguments from
CliSettingsSource.__init__. by @trygve-baerland in #656 - turn off allow_abbrev on subparsers by @mroch in #658
- CLI Serialization Fixes by @kschwab in #649
- Fix PydanticModel type checking. by @kschwab in #659
- Avoid env_prefix falling back to env vars without prefix by @tselepakis in #648
- Warn if model_config sets unused keys for missing settings sources by @HomerusJa in #663
- Included endpoint_url kwarg in AWSSecretsManagerSettingsSource class by @adrianohrl in #664
- Fix typo ("Accesing") in the "Adding sources" docs by @deepyaman in #668
- CLI Windows Path Fix by @kschwab in #669
- Cli root model support by @kschwab in #677
- Snake case conversion in Azure Key Vault by @AndreuCodina in #680
- Make
InitSettingsSourceresolution deterministic by @enrico-stauss in #681 - Update deps by @hramezani in #683
New Contributors
- @tselepakis made their first contribution in #644
- @trygve-baerland made their first contribution in #656
- @mroch made their first contribution in #658
- @HomerusJa made their first contribution in #663
- @adrianohrl made their first contribution in #664
- @deepyaman made their first contribution in #668
- @enrico-stauss made their first contribution in #681
Full Changelog: https://github.com/pydantic/pydantic-settings/compare/2.10.1...v2.11.0
v2.10.1
What's Changed
- Fix UnboundLocalError error in _replace_field_names_case_insensitively by @hramezani in #639
- Remove unknown file reference in documentation by @Viicos in #640
- Prepare release 2.10.1 by @hramezani in #642
Full Changelog: https://github.com/pydantic/pydantic-settings/compare/2.10.0...2.10.1
v2.10.0
What's Changed
- Fix running tests when azure-keyvault-secrets is not installed by @CyberTailor in #601
- Fix running tests when google-cloud-secret-manager is not installed by @CyberTailor in #602
- Support loading a specific nested key from YAML in YamlConfigSettingsSource by @Seunghan-Jung in #603
- Fix CLI suppression for model group help by @kschwab in #604
- Fix missing DEFAULT_PATH import by @hramezani in #606
- Fix case-insensitive handling of nested aliases in EnvironmentSettingsSource by @d15ky in #608
- Azure Key Vault case insensitive support and dash-underscore translation by @d15ky in #607
- fix: Respect 'cli_parse_args' from model_config with settings_customise_sources by @karta9821 in #611
- Bump astral-sh/setup-uv by @hramezani in #612
- Update packages by @hramezani in #613
- Update README.md by @hramezani in #616
- Fix CI badge by @hramezani in #617
- Update dependencies by @hramezani in #618
- Fix coverage report by @hramezani in #619
- Fix _consume_object_or_array on unbalanced brackets in JSON strings by @andryak in #621
- add region as a parameter to aws secret manager by @barakor-vs in #622
- Expose GCP Secret Manager case sensitive option by @bellmatthewf in #626
- Update deps by @hramezani in #633
- feat: Add
cli_shortcutsto CLI settings by @karta9821 in #624 - Expose AWS Secrets Manager case sensitive option by @femiadebayo in #629
- Prepare release 2.10.0 by @hramezani in #635
New Contributors
- @Seunghan-Jung made their first contribution in #603
- @d15ky made their first contribution in #608
- @karta9821 made their first contribution in #611
- @andryak made their first contribution in #621
- @barakor-vs made their first contribution in #622
- @bellmatthewf made their first contribution in #626
- @femiadebayo made their first contribution in #629
Full Changelog: https://github.com/pydantic/pydantic-settings/compare/v2.9.1...2.10.0
v2.9.1
What's Changed
- fix: Expose ConfigFileSourceMixing on top level sources/init.py by @jbw-vtl in #597
- Fix typo in gcp secret manager error message by @christian-heusel in #598
- Prepare release 2.9.1 by @hramezani in #600
New Contributors
- @jbw-vtl made their first contribution in #597
- @christian-heusel made their first contribution in #598
Full Changelog: https://github.com/pydantic/pydantic-settings/compare/v2.9.0...v2.9.1
v2.9.0
What's Changed
- Drop support for Python 3.8 by @Viicos in #560
- Switch to
typing-inspectionby @Viicos in #556 - Introduce
uvfor Project Management by @KanchiShimono in #547 - Refactor sources.py into a subpackage (#546) by @ezwiefel in #548
- chore: cleanup by @CodeWithEmad in #563
- Fix typo in documentation by @CodeWithEmad in #564
- Add support for AWS Secrets Manager by @mavwolverine in #532
- Fix minor typo: conotations => connotations by @svenevs in #577
- Azure Key Vault: Don't load disabled secret by @AndreuCodina in #578
- Add support for GCP Secret Manager by @ezwiefel in #567
- CLI JSON Optional Default by @kschwab in #581
- Fix for env nested enum. by @kschwab in #589
- CLI submodel suppress. by @kschwab in #587
- Cli retrieve unknown args by @kschwab in #588
- Update pydantic by @hramezani in #593
- Fix check in CI by @hramezani in #595
New Contributors
- @ezwiefel made their first contribution in #548
- @CodeWithEmad made their first contribution in #563
- @mavwolverine made their first contribution in #532
- @svenevs made their first contribution in #577
Full Changelog: https://github.com/pydantic/pydantic-settings/compare/v2.8.1...v2.9.0
v2.8.1
What's Changed
- Fix for init source kwarg alias resolution. by @kschwab in https://github.com/pydantic/pydantic-settings/pull/550
- Revert usage of positional only argument in
BaseSettings.__init__by @Viicos in https://github.com/pydantic/pydantic-settings/pull/557 - Revert use of
objectinstead ofAnyby @Viicos in https://github.com/pydantic/pydantic-settings/pull/559 - Prepare release 2.8.1 by @hramezani in https://github.com/pydantic/pydantic-settings/pull/558
Full Changelog: https://github.com/pydantic/pydantic-settings/compare/v2.8.0...v2.8.1
v2.8.0
What's Changed
- CLI support for optional and variadic positional args by @kschwab in https://github.com/pydantic/pydantic-settings/pull/519
- Improve env_prefix config doc by @hramezani in https://github.com/pydantic/pydantic-settings/pull/523
- Add env_nested_max_split setting by @gsakkis in https://github.com/pydantic/pydantic-settings/pull/534
- Avoid using
AnyinBaseSettingssignature to avoid mypy errors by @Viicos in https://github.com/pydantic/pydantic-settings/pull/529 - Asynchronous CLI methods in CliApp by @KanchiShimono in https://github.com/pydantic/pydantic-settings/pull/533
- Don't explode env vars if env_nested_delimiter is empty by @gsakkis in https://github.com/pydantic/pydantic-settings/pull/540
- Prepare release 2.8.0 by @hramezani in https://github.com/pydantic/pydantic-settings/pull/541
New Contributors
- @gsakkis made their first contribution in https://github.com/pydantic/pydantic-settings/pull/534
- @KanchiShimono made their first contribution in https://github.com/pydantic/pydantic-settings/pull/533
Full Changelog: https://github.com/pydantic/pydantic-settings/compare/v2.7.1...v2.8.0
v2.7.1
What's Changed
- Move preferred alias resolution to private method by @kschwab in https://github.com/pydantic/pydantic-settings/pull/507
- Prepare release 2.7.1 by @hramezani in https://github.com/pydantic/pydantic-settings/pull/511
Full Changelog: https://github.com/pydantic/pydantic-settings/compare/v2.7.0...v2.7.1
v2.7.0
What's Changed
- Fix
test_protected_namespace_defaultswith -Wdefault by @CyberTailor in https://github.com/pydantic/pydantic-settings/pull/462 - Make tests more robust to the running environment by @CyberTailor in https://github.com/pydantic/pydantic-settings/pull/464
- Fix rendering of annotations in code example by @Viicos in https://github.com/pydantic/pydantic-settings/pull/470
- Fix alias resolution for default settings source. by @kschwab in https://github.com/pydantic/pydantic-settings/pull/468
- Use the class name in the
__repr__implementations by @dlax in https://github.com/pydantic/pydantic-settings/pull/465 - Fix default help text for union of submodels. by @kschwab in https://github.com/pydantic/pydantic-settings/pull/472
- Add support for CliMutuallyExclusiveGroup. by @kschwab in https://github.com/pydantic/pydantic-settings/pull/473
- Disable abbreviations on internal parser. by @kschwab in https://github.com/pydantic/pydantic-settings/pull/477
- Fix Secret field parsing by @hramezani in https://github.com/pydantic/pydantic-settings/pull/478
- Fix alias resolution to use preferred key. by @kschwab in https://github.com/pydantic/pydantic-settings/pull/481
- Strip annotated when getting submodels during CLI parsing. by @kschwab in https://github.com/pydantic/pydantic-settings/pull/490
- Removing return type from the function in test by @hramezani in https://github.com/pydantic/pydantic-settings/pull/491
- Relax default protected_namespaces by @hramezani in https://github.com/pydantic/pydantic-settings/pull/483
- Add support for CLI kebab case flag. by @kschwab in https://github.com/pydantic/pydantic-settings/pull/489
- Change reference of default values validation in documentation by @Viicos in https://github.com/pydantic/pydantic-settings/pull/496
- Improve field value parsing by adding
NoDecodeandForceDecodeannotations by @hramezani in https://github.com/pydantic/pydantic-settings/pull/492 - Fix attribute error on Python 3.9 with typing.Sequence by @hramezani in https://github.com/pydantic/pydantic-settings/pull/497
- Prepare release 2.7.0 by @hramezani in https://github.com/pydantic/pydantic-settings/pull/499
New Contributors
- @CyberTailor made their first contribution in https://github.com/pydantic/pydantic-settings/pull/462
- @dlax made their first contribution in https://github.com/pydantic/pydantic-settings/pull/465
Full Changelog: https://github.com/pydantic/pydantic-settings/compare/v2.6.1...v2.7.0
v2.6.1
What's Changed
- Add Python 3.13 support by @hramezani in https://github.com/pydantic/pydantic-settings/pull/450
- Fixes #452 - Adding support for populate_by_name by @hozn in https://github.com/pydantic/pydantic-settings/pull/454
- Refactor path_type_label by @aberenda-optifino in https://github.com/pydantic/pydantic-settings/pull/458
- Revert "Fix context not passed to field validators bug (#417)" by @hramezani in https://github.com/pydantic/pydantic-settings/pull/459
New Contributors
- @hozn made their first contribution in https://github.com/pydantic/pydantic-settings/pull/454
- @aberenda-optifino made their first contribution in https://github.com/pydantic/pydantic-settings/pull/458
Full Changelog: https://github.com/pydantic/pydantic-settings/compare/v2.6.0...v2.6.1
v2.6.0
What's Changed
- Fix nested model field with alias parsing by @hramezani in https://github.com/pydantic/pydantic-settings/pull/400
- Fix PathType typing in case of sequence by @just-maiyak in https://github.com/pydantic/pydantic-settings/pull/402
- Add
cli_ignore_unknown_argsconfig option. by @kschwab in https://github.com/pydantic/pydantic-settings/pull/405 - Fix AzureKeyVaultSettingsSource problem in case of field with underscore by @hramezani in https://github.com/pydantic/pydantic-settings/pull/415
- Add
cli_flag_prefix_charconfig option. by @kschwab in https://github.com/pydantic/pydantic-settings/pull/418 - Fix nested model AliasChoices in validation alias by @hramezani in https://github.com/pydantic/pydantic-settings/pull/411
- Add CLI App Support by @kschwab in https://github.com/pydantic/pydantic-settings/pull/389
- Fix context not passed to field validators bug by @hramezani in https://github.com/pydantic/pydantic-settings/pull/417
- Fix a regression in dotenv optional nested field by @hramezani in https://github.com/pydantic/pydantic-settings/pull/423
- Put tests for non-default sources in separate files by @makukha in https://github.com/pydantic/pydantic-settings/pull/429
- Update nested model partial update docs example. by @kschwab in https://github.com/pydantic/pydantic-settings/pull/433
- Add support for suppressing fields from CLI help. by @kschwab in https://github.com/pydantic/pydantic-settings/pull/436
- Fix bug in dotenv source when there is env with and without prefix by @hramezani in https://github.com/pydantic/pydantic-settings/pull/440
- Prepare release 2.6.0 by @hramezani in https://github.com/pydantic/pydantic-settings/pull/444
New Contributors
- @just-maiyak made their first contribution in https://github.com/pydantic/pydantic-settings/pull/402
Full Changelog: https://github.com/pydantic/pydantic-settings/compare/v2.5.2...v2.6.0
v2.5.2
What's Changed
- Second fix for the TypeError bug introduced in 2.5 by @hramezani in https://github.com/pydantic/pydantic-settings/pull/396
Full Changelog: https://github.com/pydantic/pydantic-settings/compare/v2.5.1...v2.5.2
v2.5.1
What's Changed
- Fix TypeError introduced in 2.5 by @hramezani in https://github.com/pydantic/pydantic-settings/pull/392
Full Changelog: https://github.com/pydantic/pydantic-settings/compare/v2.5.0...v2.5.1
v2.5.0
What's Changed
- Fix a bug in nested vanila dataclass by @hramezani in https://github.com/pydantic/pydantic-settings/pull/357
- CLI Improve Docstring Help Text by @kschwab in https://github.com/pydantic/pydantic-settings/pull/359
- Cli fix default or none object help text by @kschwab in https://github.com/pydantic/pydantic-settings/pull/364
- Determine RootModel complexity from root type by @user1584 in https://github.com/pydantic/pydantic-settings/pull/344
- Add CLI bool flags by @kschwab in https://github.com/pydantic/pydantic-settings/pull/365
- CLI arg list whitespaces fix. by @kschwab in https://github.com/pydantic/pydantic-settings/pull/369
- Add
nested_model_default_partial_updateflag andDefaultSettingsSourceby @kschwab in https://github.com/pydantic/pydantic-settings/pull/348 - Parse enum fixes. by @kschwab in https://github.com/pydantic/pydantic-settings/pull/367
- Fixes CLI help text for function types by @kschwab in https://github.com/pydantic/pydantic-settings/pull/370
- Add get_subcommand function. by @kschwab in https://github.com/pydantic/pydantic-settings/pull/341
- Cli prefix validation alias fix by @kschwab in https://github.com/pydantic/pydantic-settings/pull/375
- CLI ignore external parser list fix by @kschwab in https://github.com/pydantic/pydantic-settings/pull/379
- Enable multiple secrets dirs by @makukha in https://github.com/pydantic/pydantic-settings/pull/372
- Add CLI subcommand union and alias support by @kschwab in https://github.com/pydantic/pydantic-settings/pull/380
- Fix dotenv settings source problem in handling extra variables with same prefix in name by @hramezani in https://github.com/pydantic/pydantic-settings/pull/386
New Contributors
- @user1584 made their first contribution in https://github.com/pydantic/pydantic-settings/pull/344
- @makukha made their first contribution in https://github.com/pydantic/pydantic-settings/pull/372
Full Changelog: https://github.com/pydantic/pydantic-settings/compare/v2.4.0...v2.5.0
python-gitlab/python-gitlab (python-gitlab)
v4.13.0
Chores
-
deps: Update all non-major dependencies (
c3efb37)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Features
-
api: Add support for project Pages API
(
0ee0e02)
v4.12.2
Bug Fixes
When an error occurs, raise GitlabHeadError in project.files.head() method.
Closes: #3004
v4.12.1
Bug Fixes
-
ci: Do not rely on GitLab.com runner arch variables (#3003,
c848d12) -
files: Correctly raise GitlabGetError in get method (
190ec89)
Chores
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
-
deps: Update gitlab/gitlab-ee docker tag to v17.4.1-ee.0
(
64eed5d)
v4.12.0
Bug Fixes
- fix(api): head requests for projectfilemanager
Co-authored-by: Patrick Evans patrick.evans@gehealthcare.com
Co-authored-by: Nejc Habjan hab.nejc@gmail.com
Chores
pylint 3.3.1 appears to have added "too-many-positional-arguments" check with a value of 5.
I don't disagree with this, but we have many functions which exceed this value. We might think about converting some of positional arguments over to keyword arguments in the future. But that is for another time.
For now disable the check across the project.
-
deps: Update all non-major dependencies (
ae132e7) -
deps: Update all non-major dependencies (
10ee58a) -
deps: Update dependency types-setuptools to v75 (
a2ab54c) -
deps: Update gitlab/gitlab-ee docker tag to v17.3.2-ee.0 (
5cd1ab2) -
deps: Update gitlab/gitlab-ee docker tag to v17.4.0-ee.0 (
8601808)
Features
v4.11.1
Bug Fixes
-
client: Ensure type evaluations are postponed
(
b41b2de)
v4.11.0
Chores
-
deps: Update all non-major dependencies (
fac8bf9) -
deps: Update all non-major dependencies (
88c7529) -
deps: Update dependency types-setuptools to v74 (
bdfaddb) -
pre-commit: Add deps (
fe5e608)
Documentation
-
objects: Fix typo in get latest pipeline
(
b9f5c12)
Features
-
Add a minimal GraphQL client (
d6b1b0a) -
api: Add exclusive GET attrs for /groups/:id/members (
d44ddd2) -
api: Add exclusive GET attrs for /projects/:id/members (
e637808) -
client: Add retry handling to GraphQL client (
8898c38) -
client: Make retries configurable in GraphQL (
145870e)
Refactoring
-
client: Move retry logic into utility
(
3235c48)
python-poetry/poetry (python-poetry/poetry)
v1.8.5
Changed
- Require
pkginfo>=1.12to fix an issue with an unknown metadata version 2.4 (#9888). - Do not fail if the unknown metadata version is only a minor version update (#9888).
v1.8.4
Added
- Add official support for Python 3.13 (#9523).
Changed
- Require
virtualenv>=20.26.6to mitigate potential command injection when runningpoetry shellin untrusted projects (#9757).
poetry-core (1.9.1)
- Add
3.13to the list of available Python versions (#747).
v1.8.3
Added
- Add support for untagged CPython builds with versions ending with a
+(#9207).
Changed
- Require
pkginfo>=1.10to ensure support for packages with metadata version 2.3 (#9130). - Improve locking on FIPS systems (#9152).
Fixed
- Fix an issue where unrecognized package metadata versions silently resulted in empty dependencies (#9203, #9226).
- Fix an issue where trailing slashes in git URLs where not handled correctly (#9205).
- Fix an issue where
poetry selfcommands printed a warning that the current project cannot be installed (#9302). - Fix an issue where
poetry installsporadically failed with aKeyErrordue to a race condition (#9335).
Docs
- Fix incorrect information about
poetry shell(#9060). - Add a git subdirectory example to
poetry add(#9080). - Mention interactive credential configuration (#9074).
- Add notes for optional advanced installation steps (#9098).
- Add reference to configuration credentials in documentation of poetry
publish(#9110). - Improve documentation for configuring credentials via environment variables (#9121).
- Remove misleading wording around virtual environments (#9213).
- Remove outdated advice regarding seeding keyring backends (#9164).
- Add a
pyproject.tomlexample for a dependency with multiple extras (#9138). - Clarify help of
poetry add(#9230). - Add a note how to configure credentials for TestPyPI for
poetry publish(#9255). - Fix information about the
--readmeoption inpoetry new(#9260). - Clarify what is special about the Python constraint in
dependencies(#9256). - Update how to uninstall plugins via
pipx(#9320).
timothycrosley/isort (timothycrosley/isort)
v5.13.2
- Apply the bracket fix from issue #471 only for use_parentheses=True (#2184) @bp72
- Confine pre-commit to stages (#2213) @davidculley
- Fixed colors extras (#2212) @staticdev
v5.13.1
- Fixed integration tests (#2208) @bp72
- Fixed normalizing imports from more than one level of parent modules (issue/2152) (#2191) @bp72
- Remove optional dependencies without extras (#2207) @staticdev
v5.13.0
- Cleanup deprecated extras (#2089) @staticdev
- Fixed #1989: settings lookup when working in stream based mode
- Fixed 80 line length for wemake linter (#2183) @skatromb
- Add support for Python 3.12 (#2175) @hugovk
- Fixed: add newest version to pre-commit docs (#2190) @AzulGarza
- Fixed assertions in test_git_hook (#2196) @mgorny
- Removed check for include_trailing_comma for the Hanging Indent wrap mode (#2192) @bp72
- Use the standard library tomllib on sufficiently new python (#2202) @eli-schwartz
- Update pre-commit.md version number (#2197) @nicobako
- doc: Update black_compatibility.md (#2177) @JSS95
- Fixed safety sept 2023 (#2178) @staticdev
- docs: fix black profile documentation (#2163) @nijel
- Fixed typo: indended -> indented (#2161) @vadimkerr
- Docs(configuration/options.md): fix missing trailing spaces for hard linebreak (#2157) @JoeyTeng
- Update pre-commit.md (#2148) @godiard
- chore: move configurations to pyproject.toml (#2115) @SauravMaheshkar
- Fixed typo in README (#2112) @stefmolin
- Update version in pre-commit setup to avoid installation issue with poetry (#2103) @stefmolin
- Skip .pytype directory by default. (#2098) @manueljacob
- Fixed a tip block styling in the Config Files section (#2097) @Klavionik
- Do not cache configuration files (#1995) @kaste
- Derive settings_path from --filename (#1992) @kaste
- Fixed year of version 5.12.0 in CHANGELOG.md (#2082) @DjLegolas
uis/devops/lib/ucam-faas-python (ucam-faas)
v0.17.5
Bug Fixes
- deps: update dependency pre-commit to v4 (40e3145)
v0.17.4
Bug Fixes
- deps: pin dependencies (68ec701)
v0.17.3
Bug Fixes
v0.17.2
Bug Fixes
- update dependencies and pin python image (ef978b5)
v0.17.1
Bug Fixes
- update repo link for PyPi (4f85ada)
v0.17.0
Features
- add CloudEvent validation for webhook handler proxy (f0c880e)
v0.16.0
Features
- docs: add auto-built API documentation (b3998b0)
v0.15.0
Features
- support undoing functions_framework global state changes (516966e)
v0.14.1
v0.14.0
Features
- add support for reading message payload from bucket (37f8b6e)
v0.13.0
Features
- add authentication to webhook endpoint (34496a6)
Bug Fixes
- exclude run handler function from coverage (316b70d)
- remove JSON checking from data publishing (e81418f)
v0.12.0
Features
- refactor entra webhook container (319cf45)
Bug Fixes
- move entra webhook code into separate module (219026f)
v0.11.0
Features
- add long-running task support (f11c827)
Bug Fixes
- remove unneeded initialize argument (8f23b43)
v0.10.0
Features
- push docker images to public registry (b5b68ff)
v0.9.3
v0.9.2
Bug Fixes
- bump ci template to v6.10.0 to avoid release-it releasing twice (937dbe6)
- remove duplicated file release-it.json (ed53ae2)
v0.9.1
v0.9.0
Features
- add release-it config (23f78f3)
- include traceback on unhandled exceptions (5161cef)
- type-annotate ucam_fass and example modules (470334e)
Bug Fixes
v0.8.0
Changed
- Loosen gunicorn dependency constraint to allow gunicorn >=22.0.0
v0.7.2
Added
- Release docker images through multi-stage-docker-build CI template
uis/devops/iam/identity-lib (ucam-identitylib)
v3.4.0
Changed
- Updated Photo API spec.
Added
- Position Reference Number identifier.
v3.3.2
Fixed
- Fixed PyPi publication pipeline.
- Updated CI templates.
- Updated dependencies.
uis/devops/continuous-delivery/ci-templates (uis/devops/continuous-delivery/ci-templates)
v7.19.2: 7.19.2
7.19.2 (2025-10-23)
Bug Fixes
- maven.gitab-ci.yml: added missing GKE_RUNNER_TAG on build_artifact (470fc86)
v7.19.1: 7.19.1
7.19.1 (2025-10-23)
Bug Fixes
- maven.gitlab-ci.yml: update publish to use CI_COMMIT_TAG for a release, or script for snapshot (e616bd4)
v7.19.0: 7.19.0
7.19.0 (2025-10-16)
Features
- add poe-based test runner proof of concept (8e159c9)
v7.18.0: 7.18.0
7.18.0 (2025-10-02)
Features
v7.17.7: 7.17.7
7.17.7 (2025-10-02)
Bug Fixes
- python-tox: increase Kubernetes memory limit for python-tox jobs (461ab04)
v7.17.6: 7.17.6
7.17.6 (2025-10-01)
Bug Fixes
- terraform: set kubernetes CPU requests for terraform jobs (5c75c2d)
v7.17.5: 7.17.5
7.17.5 (2025-09-30)
Bug Fixes
- exclude modules example sub-dirs from trivy scan (3adf47a)
v7.17.4: 7.17.4
7.17.4 (2025-09-29)
Bug Fixes
v7.17.3: 7.17.3
7.17.3 (2025-09-29)
v7.17.2: 7.17.2
7.17.2 (2025-09-25)
Bug Fixes
- mandatory-jobs: reduce cpu and memory requests for SAST jobs (9d3526a)
v7.17.1: 7.17.1
7.17.1 (2025-09-25)
Bug Fixes
- pre-commit: certdir variable must be an empty string (d608c55)
v7.17.0: 7.17.0
7.17.0 (2025-09-24)
Features
- mandatory-jobs: increase runner resources for failing SAST jobs (cfb7fd5)
v7.16.0: 7.16.0
7.16.0 (2025-09-19)
Features
- 🎸 Move standard job to Generic GKE Runner (59d2a0e)
v7.15.2: 7.15.2
7.15.2 (2025-09-17)
v7.15.1: 7.15.1
7.15.1 (2025-09-11)
Bug Fixes
- maven.gitlab-ci.yml: moved PUBLISH_NEW_VERSION within .maven:publish script (e02809e)
- maven.gitlab-ci.yml: updated semantic commit message pattern matching and logic (b9ad541)
- maven.gitlab-ci.yml: updated semantic commit message pattern matching and logic (e8071e1)
- maven.gitlab-ci.yml: updated semantic commit message pattern matching and logic (2574c8c)
v7.15.0: 7.15.0
7.15.0 (2025-09-08)
Features
- add custom configuration for secrets (ef86a30)
v7.14.1: 7.14.1
7.14.1 (2025-09-04)
Bug Fixes
- maven.gitlab-ci.yml: move services section under maven job (a2c5dca)
v7.14.0: 7.14.0
7.14.0 (2025-09-02)
Features
v7.13.1: 7.13.1
7.13.1 (2025-09-01)
Bug Fixes
- rename detect-non-utf8-files job and make it work with spaces in filenames (4d7ec69)
v7.13.0: 7.13.0
7.13.0 (2025-08-27)
Features
- add detect-non-utf-files job (f629243)
v7.12.0: 7.12.0
7.12.0 (2025-08-27)
Features
- terraform-pipeline: remove duplicate kics job (354c3cc)
v7.11.1: 7.11.1
7.11.1 (2025-08-21)
v7.11.0: 7.11.0
7.11.0 (2025-08-21)
Features
- trivy job now to use logan-terrafrom image and run terraform init in before_script (b03b3e4)
v7.10.4: 7.10.4
7.10.4 (2025-08-14)
v7.10.3: 7.10.3
7.10.3 (2025-08-14)
v7.10.2: 7.10.2
7.10.2 (2025-08-14)
v7.10.1: 7.10.1
7.10.1 (2025-08-14)
v7.10.0: 7.10.0
7.10.0 (2025-08-14)
Features
- auto-devops: remove mandatory jobs from auto-devops template (5f7de9c)
v7.9.1: 7.9.1
7.9.1 (2025-08-13)
v7.9.0: 7.9.0
7.9.0 (2025-08-13)
Features
- mandatory-jobs: provide AST-related CI/CD variable defaults (3421a2e)
v7.8.0: 7.8.0
7.8.0 (2025-08-13)
Features
- add mandatory jobs template (975f4aa)
v7.7.0: 7.7.0
7.7.0 (2025-08-07)
Features
- add dind support to terraform-test (a17505d)
v7.6.4: 7.6.4
7.6.4 (2025-08-07)
Reverts
- Revert "fix(common-pipeline): pin secret detector image version" (b62bc91)
v7.6.3: 7.6.3
7.6.3 (2025-08-06)
Bug Fixes
- common-pipeline: pin secret detector image version (8109734)
v7.6.2: 7.6.2
7.6.2 (2025-07-22)
Bug Fixes
- handling having set CI_APPLICATION_REPOSITORY with multi target docker builds (1dc6987)
v7.6.1: 7.6.1
7.6.1 (2025-07-16)
Bug Fixes
Configuration
📅 Schedule: Branch creation - Monday through Friday ( * * * * 1-5 ) in timezone Europe/London, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This MR will be recreated if closed unmerged. Get config help if that's undesired.
- [ ] If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.