Samuel Colvin
80f016ecd6
add label when cherry-picking
2022-09-20 18:38:33 +01:00
Samuel Colvin
7d5ba748a4
tweak cherry-pick.yml action
2022-09-20 18:32:56 +01:00
Samuel Colvin
e071a3e368
remove repeat newline in docs (again) ( #4545 )
2022-09-20 14:19:33 +00:00
Samuel Colvin
c3e3fafae0
remove repeat newline in docs ( #4544 )
2022-09-20 14:01:22 +00:00
Samuel Colvin
e4a0561dbc
add github token to cherry-pick
2022-09-20 14:50:46 +01:00
Samuel Colvin
e0b8e0530b
tiny tweak to docs ( #4543 )
2022-09-20 14:48:59 +01:00
Samuel Colvin
2e834fecfb
add cherry-pick action
2022-09-20 14:21:16 +01:00
Ofek Lev
523c62252a
Restore PyPI landing page ( #4520 )
...
* Restore PyPI landing page
* address
* add license expression
* tweak fancy-pypi-readme setup
Co-authored-by: Samuel Colvin <s@muelcolvin.com >
2022-09-20 10:58:51 +00:00
Marcelo Trylesinski
abd687700a
Update mkdocs.yml ( #4524 )
2022-09-16 10:47:37 +02:00
Samuel Colvin
eaa5eaafa1
fix license in pyproject.toml before it bites us
2022-09-15 16:34:23 +01:00
Dmitry Lavrentev
996101b8ba
fix: missing file extension in model_config.md link ( #4512 )
2022-09-13 09:39:31 +02:00
Samuel Colvin
ee52496101
Email tweaks ( #988 )
...
* small tweaks to email validation
* more test examples
* change and better error messages
* remove duplicate tests
* linting
* tweak from @hramezani
2022-09-08 15:46:58 +00:00
Samuel Colvin
c475a67690
add hooky config to pyproject.toml
2022-09-08 16:34:03 +01:00
Hasan Ramezani
81b8cda305
Remove remaining parts of settings management ( #4504 )
2022-09-07 23:15:48 +02:00
Samuel Colvin
2df1ee69e9
use "field_specifiers", fix #4500
2022-09-07 15:48:55 +01:00
Samuel Colvin
85e4596958
Move settings to pydantic-settings ( #4492 )
...
* Move settings to pydantic-settings
* fix docs, remove dotenv
* fix coverage
* removing unused test fixture
2022-09-07 13:05:51 +01:00
Samuel Colvin
f341049b9e
Remove Cython & Move to pyproject.toml ( #4473 )
...
* Remove Cython
* fix CI
* fix coverage
* fix tests
* switching to pypyroject.toml
* pre-commit all and use pre-commit for linting
* no mypy tests on macos and windows on ci, use flake8-pyproject
* fix docs and tests CI
* check build is working
* drop pytest-cov
* window and macos ci with 3.11, reduce filtering
* use pip-tools to pin all dependencies
* fix docs and fastapi tests
* fix test deps for 3.7
* no cache on tests job
* revert fastapi changes, fix coverage
* fix mypy coverage
* test with older mypy
* dotenv not required for mypy tests
* split testing requirements std and extra
* typo
* @PrettyWood comments
* correct branch name
* mypy python_version and pr template
2022-09-06 17:15:51 +01:00
Samuel Colvin
bc74342b39
prepare for v1.10.2
2022-09-05 17:35:13 +01:00
Eric Jolibois
f1e9883157
fix: dataclass wrapper was not always called ( #4484 )
2022-09-05 17:32:29 +01:00
Sveinung Gundersen
91bb8d4482
Basic fix of GenericModel cache to detect order of args in Union models [ #4474 ] ( #4482 )
2022-09-05 15:51:20 +01:00
Samuel Colvin
eccd85e4d0
prevent long strings as int inputs ( #4480 )
...
* prevent long strings as int inputs, fix #1477
* fix tests 🤦
* fix length in change file
2022-09-05 12:35:08 +01:00
Samuel Colvin
a4367c1c58
Revert percent encoding in URLs. ( #4470 )
...
* Revert "Fix `AnyUrl.build` doesn't do percent encoding (#3061 ) (#4224 )"
This reverts commit e34ff9255f .
* change and warning
2022-09-05 11:02:43 +01:00
Samuel Colvin
02cf7f5d7b
fix mypy with default_factory=list etc. ( #4471 )
...
* fix mypy with default_factory=list etc.
* fix tests
* add error case
2022-09-05 11:01:43 +01:00
Shantanu
5a2ddec9b2
Use tomllib on Python 3.11 ( #4476 )
...
* Use tomllib on Python 3.11
* changelog
2022-09-05 11:00:56 +01:00
dependabot[bot]
317bef33b0
build(deps): bump black from 22.6.0 to 22.8.0 ( #4465 )
...
Bumps [black](https://github.com/psf/black ) from 22.6.0 to 22.8.0.
- [Release notes](https://github.com/psf/black/releases )
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md )
- [Commits](https://github.com/psf/black/compare/22.6.0...22.8.0 )
---
updated-dependencies:
- dependency-name: black
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-01 23:49:25 +02:00
dependabot[bot]
2add8a9482
build(deps): bump hypothesis from 6.54.3 to 6.54.4 ( #4464 )
...
Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis ) from 6.54.3 to 6.54.4.
- [Release notes](https://github.com/HypothesisWorks/hypothesis/releases )
- [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.54.3...hypothesis-python-6.54.4 )
---
updated-dependencies:
- dependency-name: hypothesis
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-01 23:49:06 +02:00
dependabot[bot]
f1fb4f20b4
build(deps): bump mkdocs-material from 8.4.0 to 8.4.2 ( #4463 )
...
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material ) from 8.4.0 to 8.4.2.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases )
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG )
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/8.4.0...8.4.2 )
---
updated-dependencies:
- dependency-name: mkdocs-material
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-01 23:48:47 +02:00
dependabot[bot]
85cd9ff5d1
build(deps): bump autoflake from 1.4 to 1.5.3 ( #4462 )
...
Bumps [autoflake](https://github.com/PyCQA/autoflake ) from 1.4 to 1.5.3.
- [Release notes](https://github.com/PyCQA/autoflake/releases )
- [Commits](https://github.com/PyCQA/autoflake/compare/v1.4...v1.5.3 )
---
updated-dependencies:
- dependency-name: autoflake
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-01 23:48:25 +02:00
Samuel Colvin
32ea885345
prepare for v1.10.1
2022-08-31 10:57:25 +01:00
Grzegorz Bokota
3a2e83ce64
Add __hash__ operator to Color class ( #4455 )
...
* add __hash__ operator to Color
* add changes file
* fix code style
* add type annotation
* Update changes/4455-czaki.md
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com >
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com >
2022-08-31 10:53:59 +01:00
Samuel Colvin
64f24726d1
v1.10 💥 ( #4452 )
2022-08-30 16:51:46 +01:00
Samuel Colvin
b065908490
fix type hints in BaseSettings.Config ( #4450 )
...
* fix type hints in BaseSettings.Config
* add tests and change notice
2022-08-30 13:08:23 +01:00
Samuel Colvin
f8575aa379
prepare for v1.10.0b1 release
2022-08-24 20:14:26 +01:00
Samuel Colvin
0244b06be5
Warn and ignore __slots__ argument to create_model ( #4432 )
...
* add test for create_model with slots
* add test for create_model with slots
* add warning and change description
* fix flakey none tests on 3.8.10
* avoid flakey coverage changes
2022-08-24 20:13:07 +01:00
Samuel Colvin
934adc1d85
prepare for v1.10.0a2 release
2022-08-24 12:28:43 +01:00
Samuel Colvin
f708c32f89
avoid docs update on pre-release ( #4429 )
2022-08-24 12:27:50 +01:00
Hasan Ramezani
9420c2bc41
Add how to skip the change file check to pull request template ( #4428 )
2022-08-24 12:21:51 +01:00
commonism
135e3a57d9
setup - require typing_extensions>=4.1.0 for dataclass_transform ( #4424 )
...
* setup - require typing_extensions>=4.1.0 for dataclass_transform
* add changes file
* Update changes/4424-commonism.md
Co-authored-by: Markus Koetter <koetter@cispa.de >
Co-authored-by: Samuel Colvin <samcolvin@gmail.com >
2022-08-23 10:35:38 +00:00
Samuel Colvin
4832ae9acd
add Explosion AI and AWS to sponsors ( #4413 )
...
* add Explosion AI and AWS to sponsors
* rename "Explosion AI" to "Explosion"
Co-authored-by: Ines Montani <ines@ines.io >
Co-authored-by: Ines Montani <ines@ines.io >
2022-08-23 10:29:36 +00:00
Grant Murray
9d2e1c40cb
patch/typo-in-pydantic-v2-docs ( #4422 )
...
Change a single word in the Pydantic v2 documentation (should be `unchanged`, no?)
2022-08-23 09:41:58 +02:00
Samuel Colvin
dd5f2a55aa
fix links
2022-08-22 22:32:56 +01:00
Samuel Colvin
5b2bcfd73c
correct copy_on_model_validation docs ( #4420 )
...
* correct "copy_on_model_validation" docs, fix #4369
* Update docs/usage/model_config.md
* correct docs
2022-08-22 22:00:18 +01:00
Samuel Colvin
f1df0896f9
prepare for v1.10 ( #4418 )
2022-08-22 16:21:17 +00:00
Anthony Miyaguchi
fe7c9da6c1
Fix #1458 - Allow for custom parsing of environment variables via parse_env_var in Config object ( #4406 )
...
* Fix #1458 - Allow for custom parsing of environment variables via env_parse
* Add docs for env_parse usage
* Add changes file for #3977
* fixup: remove stray print statement
* Revert env_parse property on field
* Add parse_env_var classmethod in nested Config
* Update documentation for parse_env_var
* Update changes file.
* fixup: linting in example
* Rebase and remove quotes around imported example
* fix example
* my suggestions
* remove unnecessary Field(env_parse=_parse_custom_dict)
Co-authored-by: Samuel Colvin <s@muelcolvin.com >
2022-08-22 16:06:14 +00:00
Sebastián Ramírez
8dade7e9ac
✨ Add JSON-compatible float constraints for NaN and Inf ( #3994 )
...
* ✨ Add JSON-compatible float constraints for NaN and Inf
* switching to a single "allow_inf_nan"
* fix tests
* add change and docs
* add allow_inf_nan to Config
Co-authored-by: Samuel Colvin <s@muelcolvin.com >
2022-08-22 15:21:56 +01:00
Samuel Colvin
0bbb8747d6
fix badge links and coverage title ( #4416 )
2022-08-22 14:52:28 +01:00
Samuel Colvin
ede1497e0a
bump
2022-08-22 13:29:33 +01:00
Talley Lambert
beb3e4c8f1
Fix duplicate calls to __set_name__ for non-private attributes in BaseModel.__new__ ( #4410 )
...
* fix: double call for public attrs, extend test
* add changes
* remove change file, update 4407 file
2022-08-22 11:16:53 +00:00
Talley Lambert
d501c39f2b
Fix PEP487 __set_name__ protocol in BaseModel ( #4407 )
...
* fix: fix __set_name__ protocol in BaseModel
* undo changes
* add comment
* fix lint
* fix lint
* add change file
* remove mock, move imports
2022-08-21 13:53:26 +00:00
Hasan Ramezani
abcf81ec10
Rename master to main ( #4405 )
2022-08-19 18:49:13 +01:00