rafsaf / minimal-fastapi-postgres-template

minimal-fastapi-postgres-template based on official template but rewritten
https://minimal-fastapi-postgres-template.rafsaf.pl
MIT License
456 stars 60 forks source link

Bump the all-dependencies group across 1 directory with 18 updates #57

Closed dependabot[bot] closed 4 months ago

dependabot[bot] commented 4 months ago

Bumps the all-dependencies group with 16 updates in the / directory:

Package From To
fastapi 0.110.1 0.110.2
pydantic 2.6.4 2.7.1
coverage 7.4.4 7.5.0
freezegun 1.4.0 1.5.0
mypy 1.9.0 1.10.0
pytest 8.1.1 8.2.0
pytest-xdist 3.5.0 3.6.1
ruff 0.3.5 0.4.2
filelock 3.13.3 3.14.0
identify 2.5.35 2.5.36
idna 3.6 3.7
mako 1.3.2 1.3.3
platformdirs 4.2.0 4.2.1
setuptools 69.2.0 69.5.1
virtualenv 20.25.1 20.26.1
zope-interface 6.2 6.3

Updates fastapi from 0.110.1 to 0.110.2

Release notes

Sourced from fastapi's releases.

0.110.2

Fixes

  • 🐛 Fix support for query parameters with list types, handle JSON encoding Pydantic UndefinedType. PR #9929 by @​arjwilliams.

Refactors

  • ♻️ Simplify Pydantic configs in OpenAPI models in fastapi/openapi/models.py. PR #10886 by @​JoeTanto2.
  • ✨ Add support for Pydantic's 2.7 new deprecated Field parameter, remove URL from validation errors response. PR #11461 by @​tiangolo.

Docs

Translations

  • 🌐 Update Chinese translation for docs/zh/docs/index.html. PR #11430 by @​waketzheng.
  • 🌐 Add Russian translation for docs/ru/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md. PR #11411 by @​anton2yakovlev.
  • 🌐 Add Portuguese translations for learn/index.md resources/index.md help/index.md about/index.md. PR #10807 by @​nazarepiedady.
  • 🌐 Update Russian translations for deployments docs. PR #11271 by @​Lufa1u.
  • 🌐 Add Bengali translations for docs/bn/docs/python-types.md. PR #11376 by @​imtiaz101325.
  • 🌐 Add Korean translation for docs/ko/docs/tutorial/security/simple-oauth2.md. PR #5744 by @​KdHyeon0661.
  • 🌐 Add Korean translation for docs/ko/docs/help-fastapi.md. PR #4139 by @​kty4119.
  • 🌐 Add Korean translation for docs/ko/docs/advanced/events.md. PR #5087 by @​pers0n4.
  • 🌐 Add Japanese translation for docs/ja/docs/tutorial/path-operation-configuration.md. PR #1954 by @​SwftAlpc.
  • 🌐 Add Japanese translation for docs/ja/docs/tutorial/request-forms-and-files.md. PR #1946 by @​SwftAlpc.
  • 🌐 Add Russian translation for docs/ru/docs/tutorial/dependencies/dependencies-with-yield.md. PR #10532 by @​AlertRED.
  • 🌐 Add Korean translation for docs/ko/docs/tutorial/debugging.md. PR #5695 by @​JungWooGeon.

Internal

Commits
  • be1e3fa 🔖 Release version 0.110.2
  • 4ae63ae 📝 Update release notes
  • 6d523d6 📝 Fix types in examples under docs_src/extra_data_types (#10535)
  • d84d6e0 📝 Update release notes
  • a901e2f 📝 Update references to UJSON (#11464)
  • 8a45645 📝 Update release notes
  • 74cc33d ♻️ Simplify Pydantic configs in OpenAPI models in fastapi/openapi/models.py...
  • 5815fa5 📝 Update release notes
  • 09e4859 🐛 Fix support for query parameters with list types, handle JSON encoding Pyda...
  • 071b8f2 📝 Update release notes
  • Additional commits viewable in compare view


Updates pydantic from 2.6.4 to 2.7.1

Release notes

Sourced from pydantic's releases.

v2.7.1 (2024-04-23)

What's Changed

Packaging

New Features

Changes

  • Use field description for RootModel schema description when there is by @​LouisGobert in #9214

Fixes

New Contributors

Full Changelog: https://github.com/pydantic/pydantic/compare/v2.7.0...v2.7.1/

v2.7.0 (2024-04-11)

The code released in v2.7.0 is practically identical to that of v2.7.0b1.

What's Changed

Packaging

... (truncated)

Changelog

Sourced from pydantic's changelog.

v2.7.1 (2024-04-23)

GitHub release

What's Changed

Packaging

New Features

Changes

  • Use field description for RootModel schema description when there is by @​LouisGobert in #9214

Fixes

New Contributors

v2.7.0 (2024-04-11)

GitHub release

The code released in v2.7.0 is practically identical to that of v2.7.0b1.

... (truncated)

Commits
  • 2612947 2.7.1 release prep (#9307)
  • 2b8efa2 Move TODO regarding pickling to markdown (#9288)
  • 73d1049 adds test case for unexpected discriminated union behavior (#9236)
  • c33b925 Change CI to use macos-13 for Python 3.8 and 3.9 (#9305)
  • 82e4664 Fix model json schema with config types (#9287)
  • a0f18e3 Fix bullets in Strict Mode docs (#9296)
  • 77b0e1c Address case where model_construct on a class which defines model_post_init f...
  • 6322b24 Fix strict application to function-after with use_enum_values (#9279)
  • bb857bd docs(performance): remove section on literal vs enum performance (#9262)
  • 3c15a8b docs: make TypeAdapter example PEP-8 compliant (#9268)
  • Additional commits viewable in compare view


Updates coverage from 7.4.4 to 7.5.0

Changelog

Sourced from coverage's changelog.

Version 7.5.0 — 2024-04-23

  • Added initial support for function and class reporting in the HTML report. There are now three index pages which link to each other: files, functions, and classes. Other reports don't yet have this information, but it will be added in the future where it makes sense. Feedback gladly accepted! Finishes issue 780_.

  • Other HTML report improvements:

    • There is now a "hide covered" checkbox to filter out 100% files, finishing issue 1384_.

    • The index page is always sorted by one of its columns, with clearer indications of the sorting.

    • The "previous file" shortcut key didn't work on the index page, but now it does, fixing issue 1765_.

  • The debug output showing which configuration files were tried now shows absolute paths to help diagnose problems where settings aren't taking effect, and is renamed from "attempted_config_files" to the more logical "config_files_attempted."

  • Python 3.13.0a6 is supported.

.. _issue 780: nedbat/coveragepy#780 .. _issue 1384: nedbat/coveragepy#1384 .. _issue 1765: nedbat/coveragepy#1765

.. _changes_7-4-4:

Commits
  • 5f4e034 docs: sample HTML for 7.5.0
  • ed97cfb docs: prep for 7.5.0
  • 41e01d3 build: use macos 13 for 3.8 and 3.9 while GitHub rolls out macos 14
  • 583f0c0 test: add a test for skipping covered functions
  • b115ed3 refactor: keep Analysis private
  • 40a052e docs: document CodeRegion and its plugin methods
  • 2ff9933 docs: remove comment that now explains nothing.
  • a6ba1c8 fix: html report pages fully validate
  • 74c87a8 fix: previous page shortcut works in index page. #1765
  • e016967 feat: main index page links to other index pages
  • Additional commits viewable in compare view


Updates freezegun from 1.4.0 to 1.5.0

Changelog

Sourced from freezegun's changelog.

1.5.0

  • The default ignore list now contains the queue-package
  • Added a missing move_to-function when calling freeze_time(tick=True)
  • Fixes a rounding error in time.time_ns()
  • Fixed a bug where the default ignore list could not be empty (configure(default_ignore_list=[]))
  • All tick() methods now return the new datetime (instead of None)
  • Type improvements
Commits
  • 17ea422 Admin: Release may not need to update version nr
  • 3b33260 Admin: Release 1.5.0 changelog
  • 45d9293 Merge pull request #538 from romuald/fix-time-ns-mock
  • 6f14dc3 Merge branch 'master' into fix-time-ns-mock
  • 5b6c4a2 Merge pull request #543 from spulec/mypy
  • aabe629 MyPy
  • dfd5d9e Merge pull request #542 from kingbuzzman/patch-1
  • 4ecad0c Merge pull request #540 from encukou/fix-empty-ignore
  • 2436841 Update test_datetimes.py
  • 673adf0 Update test_datetimes.py
  • Additional commits viewable in compare view


Updates mypy from 1.9.0 to 1.10.0

Changelog

Sourced from mypy's changelog.

Mypy Release Notes

Next release

Mypy 1.10

We’ve just uploaded mypy 1.10 to the Python Package Index (PyPI). Mypy is a static type checker for Python. This release includes new features, performance improvements and bug fixes. You can install it as follows:

python3 -m pip install -U mypy

You can read the full documentation for this release on Read the Docs.

Support TypeIs (PEP 742)

Mypy now supports TypeIs (PEP 742), which allows functions to narrow the type of a value, similar to isinstance(). Unlike TypeGuard, TypeIs can narrow in both the if and else branches of an if statement:

from typing_extensions import TypeIs

def is_str(s: object) -> TypeIs[str]: return isinstance(s, str)

def f(o: str | int) -> None: if is_str(o): # Type of o is 'str' ... else: # Type of o is 'int' ...

TypeIs will be added to the typing module in Python 3.13, but it can be used on earlier Python versions by importing it from typing_extensions.

This feature was contributed by Jelle Zijlstra (PR 16898).

Support TypeVar Defaults (PEP 696)

PEP 696 adds support for type parameter defaults. Example:

from typing import Generic
from typing_extensions import TypeVar

</tr></table>

... (truncated)

Commits


Updates pytest from 8.1.1 to 8.2.0

Release notes

Sourced from pytest's releases.

8.2.0

pytest 8.2.0 (2024-04-27)

Deprecations

  • #12069: A deprecation warning is now raised when implementations of one of the following hooks request a deprecated py.path.local parameter instead of the pathlib.Path parameter which replaced it:

    • pytest_ignore_collect{.interpreted-text role="hook"} - the path parameter - use collection_path instead.
    • pytest_collect_file{.interpreted-text role="hook"} - the path parameter - use file_path instead.
    • pytest_pycollect_makemodule{.interpreted-text role="hook"} - the path parameter - use module_path instead.
    • pytest_report_header{.interpreted-text role="hook"} - the startdir parameter - use start_path instead.
    • pytest_report_collectionfinish{.interpreted-text role="hook"} - the startdir parameter - use start_path instead.

    The replacement parameters are available since pytest 7.0.0. The old parameters will be removed in pytest 9.0.0.

    See legacy-path-hooks-deprecated{.interpreted-text role="ref"} for more details.

Features

  • #11871: Added support for reading command line arguments from a file using the prefix character @, like e.g.: pytest @tests.txt. The file must have one argument per line.

    See Read arguments from file <args-from-file>{.interpreted-text role="ref"} for details.

Improvements

  • #11523: pytest.importorskip{.interpreted-text role="func"} will now issue a warning if the module could be found, but raised ImportError{.interpreted-text role="class"} instead of ModuleNotFoundError{.interpreted-text role="class"}.

    The warning can be suppressed by passing exc_type=ImportError to pytest.importorskip{.interpreted-text role="func"}.

    See import-or-skip-import-error{.interpreted-text role="ref"} for details.

  • #11728: For unittest-based tests, exceptions during class cleanup (as raised by functions registered with TestCase.addClassCleanup <unittest.TestCase.addClassCleanup>{.interpreted-text role="meth"}) are now reported instead of silently failing.

  • #11777: Text is no longer truncated in the short test summary info section when -vv is given.

  • #12112: Improved namespace packages detection when consider_namespace_packages{.interpreted-text role="confval"} is enabled, covering more situations (like editable installs).

  • #9502: Added PYTEST_VERSION{.interpreted-text role="envvar"} environment variable which is defined at the start of the pytest session and undefined afterwards. It contains the value of pytest.__version__, and among other things can be used to easily check if code is running from within a pytest run.

Bug Fixes

  • #12065: Fixed a regression in pytest 8.0.0 where test classes containing setup_method and tests using @staticmethod or @classmethod would crash with AttributeError: 'NoneType' object has no attribute 'setup_method'.

    Now the request.instance <pytest.FixtureRequest.instance>{.interpreted-text role="attr"} attribute of tests using @staticmethod and @classmethod is no longer None, but a fresh instance of the class, like in non-static methods.

... (truncated)

Commits
  • 6bd3f31 Tweak changelog for 8.2.0
  • 9b6219b Prepare release version 8.2.0
  • 835765c Merge pull request #12130 from bluetech/fixtures-inline
  • 7e7503c unittest: report class cleanup exceptions (#12250)
  • 882c4da fixtures: inline fail_fixturefunc
  • 2e8fb9f fixtures: extract a _check_fixturedef method
  • acf2971 fixtures: inline _getnextfixturedef into _get_active_fixturedef
  • 3c77aec fixtures: move "request" check early
  • d217d68 fixtures: inline _compute_fixture_value
  • 530be28 fixtures: use early return in _get_active_fixturedef
  • Additional commits viewable in compare view


Updates pytest-xdist from 3.5.0 to 3.6.1

Changelog

Sourced from pytest-xdist's changelog.

pytest-xdist 3.6.1 (2024-04-28)

Bug Fixes

  • [#1071](https://github.com/pytest-dev/pytest-xdist/issues/1071) <https://github.com/pytest-dev/pytest-xdist/issues/1071>_: Add backward compatibility for deadlock issue with the execnet new main_thread_only "execmodel" triggered when pytest-cov accesses rinfo.

pytest-xdist 3.6.0 (2024-04-19)

This release was YANKED due to a regression fixed in 3.6.1.

Features

  • [#1027](https://github.com/pytest-dev/pytest-xdist/issues/1027) <https://github.com/pytest-dev/pytest-xdist/pull/1027>_:pytest-xdist workers now always execute the tests in the main thread. Previously some tests might end up executing in a separate thread other than main in the workers, due to some internal execnet`` details. This can cause problems specially with async frameworks where the event loop is running in the ``main`` thread (for example #620 pytest-dev/pytest-xdist#620`__).

Bug Fixes

  • [#1024](https://github.com/pytest-dev/pytest-xdist/issues/1024) <https://github.com/pytest-dev/pytest-xdist/issues/1024>_: Added proper handling of shouldstop (such as set by --max-fail) and shouldfail conditions in workers. Previously, a worker might have continued executing further tests before the controller could terminate the session.

  • [#1028](https://github.com/pytest-dev/pytest-xdist/issues/1028) <https://github.com/pytest-dev/pytest-xdist/issues/1028>_: Fixed compatibility issue between looponfail and editable installs.

  • [#620](https://github.com/pytest-dev/pytest-xdist/issues/620) <https://github.com/pytest-dev/pytest-xdist/issues/620>_: Use the new main_thread_only execnet "execmodel" so that code which expects to only run in the main thread will now work as expected.

  • [#937](https://github.com/pytest-dev/pytest-xdist/issues/937) <https://github.com/pytest-dev/pytest-xdist/issues/937>_: Fixed a bug where plugin would raise an incompatibility error with --pdb despite using -n0.

Removals

  • [#1053](https://github.com/pytest-dev/pytest-xdist/issues/1053) <https://github.com/pytest-dev/pytest-xdist/issues/1053>_: Dropped support for Python 3.7.

  • [#1057](https://github.com/pytest-dev/pytest-xdist/issues/1057) <https://github.com/pytest-dev/pytest-xdist/issues/1057>_: pytest>=7.0.0 is now required.

    execnet>=2.1.0 is now required.

Trivial Changes

  • [#1020](https://github.com/pytest-dev/pytest-xdist/issues/1020) <https://github.com/pytest-dev/pytest-xdist/issues/1020>_: pytest-xdist's setup.py file is removed.

    If you relied on this file, e.g. to install pytest using setup.py install, please see Why you shouldn't invoke setup.py directly <https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html#summary>_ for alternatives.

... (truncated)

Commits
  • 4dd2978 Release 3.6.1
  • b397288 Merge pull request #1072 from zmedico/gateway-cache-rinfo
  • 12b3cce Cache execnet gateway rinfo during WorkerController setup
  • c93a106 build(deps): bump hynek/build-and-inspect-python-package (#1066)
  • 52e2022 [pre-commit.ci] pre-commit autoupdate (#1073)
  • 699f939 Merge pull request #1070 from pytest-dev/release-3.6.0
  • 80bc0b8 Release 3.6.0
  • 20e3ac7 Use execnet main_thread_only execmodel (#1027)
  • 0a4238f Merge pull request #1067 from pytest-dev/pre-commit-ci-update-config
  • 0686279 [pre-commit.ci] pre-commit autoupdate
  • Additional commits viewable in compare view


Updates ruff from 0.3.5 to 0.4.2

Release notes

Sourced from ruff's releases.

v0.4.2

Changes

Rule changes

  • [flake8-pyi] Allow for overloaded __exit__ and __aexit__ definitions (PYI036) (#11057)
  • [pyupgrade] Catch usages of "%s" % var and provide an unsafe fix (UP031) (#11019)
  • [refurb] Implement new rule that suggests min/max over sorted() (FURB192) (#10868)

Server

  • Fix an issue with missing diagnostics for Neovim and Helix (#11092)
  • Implement hover documentation for noqa codes (#11096)
  • Introduce common Ruff configuration options with new server settings (#11062)

Bug fixes

  • Use macos-12 for building release wheels to enable macOS 11 compatibility (#11146)
  • [flake8-blind-expect] Allow raise from in BLE001 (#11131)
  • [flake8-pyi] Allow simple assignments to None in enum class scopes (PYI026) (#11128)
  • [flake8-simplify] Avoid raising SIM911 for non-zip attribute calls (#11126)
  • [refurb] Avoid operator.itemgetter suggestion for single-item tuple (#11095)
  • [ruff] Respect per-file-ignores for RUF100 with no other diagnostics (#11058)
  • [ruff] Fix async comprehension false positive (RUF029) (#11070)

Documentation

  • [flake8-bugbear] Document explicitly disabling strict zip (B905) (#11040)
  • [flake8-type-checking] Mention lint.typing-modules in TCH001, TCH002, and TCH003 (#11144)
  • [isort] Improve documentation around custom isort sections (#11050)
  • [pylint] Fix documentation oversight for invalid-X-returns (#11094)

Performance

  • Use matchit to resolve per-file settings (#11111)

Contributors

... (truncated)

Changelog

Sourced from ruff's changelog.

0.4.2

Rule changes

  • [flake8-pyi] Allow for overloaded __exit__ and __aexit__ definitions (PYI036) (#11057)
  • [pyupgrade] Catch usages of "%s" % var and provide an unsafe fix (UP031) (#11019)
  • [refurb] Implement new rule that suggests min/max over sorted() (FURB192) (#10868)

Server

  • Fix an issue with missing diagnostics for Neovim and Helix (#11092)
  • Implement hover documentation for noqa codes (#11096)
  • Introduce common Ruff configuration options with new server settings (#11062)

Bug fixes

  • Use macos-12 for building release wheels to enable macOS 11 compatibility (#11146)
  • [flake8-blind-expect] Allow raise from in BLE001 (#11131)
  • [flake8-pyi] Allow simple assignments to None in enum class scopes (PYI026) (#11128)
  • [flake8-simplify] Avoid raising SIM911 for non-zip attribute calls (#11126)
  • [refurb] Avoid operator.itemgetter suggestion for single-item tuple (#11095)
  • [ruff] Respect per-file-ignores for RUF100 with no other diagnostics (#11058)
  • [ruff] Fix async comprehension false positive (RUF029) (#11070)

Documentation

  • [flake8-bugbear] Document explicitly disabling strict zip (B905) (#11040)
  • [flake8-type-checking] Mention lint.typing-modules in TCH001, TCH002, and TCH003 (#11144)
  • [isort] Improve documentation around custom isort sections (#11050)
  • [pylint] Fix documentation oversight for invalid-X-returns (#11094)

Performance

  • Use matchit to resolve per-file settings (#11111)

0.4.1

Preview features

  • [pylint] Implement invalid-hash-returned (PLE0309) (#10961)
  • [pylint] Implement invalid-index-returned (PLE0305) (#10962)

Bug fixes

  • [pylint] Allow NoReturn-like functions for __str__, __len__, etc. (PLE0307) (#11017)
  • Parser: Use empty range when there's "gap" in token source (#11032)
  • [ruff] Ignore stub functions in unused-async (RUF029) (#11026)
  • Parser: Expect indented case block instead of match stmt (#11033)

0.4.0

... (truncated)

Commits
  • 77c93fd Bump version to 0.4.2 (#11151)
  • 1c9f5e3 Display the AST even with syntax errors (#11147)
  • 263a0d2 Use macos-12 to build release wheels (#11146)
  • 4738e19 Remove unused lexical error types (#11145)
  • f428bd5 Docs: mention lint.typing-modules in TCH001, TCH002, TCH003 (#11144)
  • 4690890 ruff server: In 'publish diagnostics' mode, document diagnostics are cleare...
  • 19baabb README: add Apache Superset to project list (#11136)
  • cee38f3 [flake8-blind-expect] Allow raise from in BLE001 (#11131)
  • e3fde28 [flake8-pyi] Allow overloaded __exit__ and __aexit__ definitions (`PYI0...
  • 1c8849f Use Matchit to Resolve Per-File Settings (#11111)
  • Additional commits viewable in compare view


Updates filelock from 3.13.3 to 3.14.0

Release notes

Sourced from filelock's releases.

3.14.0

What's Changed

New Contributors

Full Changelog: https://github.com/tox-dev/filelock/compare/3.13.4...3.14.0

3.13.4

What's Changed

Full Changelog: https://github.com/tox-dev/filelock/compare/3.13.3...3.13.4

Commits
  • 8556141 feat: blocking parameter on lock constructor with tests and docs (#325)
  • 26ccad3 [pre-commit.ci] pre-commit autoupdate (#324)
  • 853e7d1 [pre-commit.ci] pre-commit autoupdate (#323)
  • 000a3fa Raise error on incompatible singleton timeout and mode args (#320)
  • 312fb4e [pre-commit.ci] pre-commit autoupdate (#321)
  • See full diff in compare view


Updates identify from 2.5.35 to 2.5.36

Commits
  • 838a489 v2.5.36
  • dab738c Merge pull request #455 from jalaziz/rust-cargo-tags
  • c0083af Identify Cargo.toml and Cargo.lock as cargo and cargo-lock
  • 80f2107 Merge pull request #452 from pre-commit/pre-commit-ci-update-config
  • 73dcf7d [pre-commit.ci] pre-commit autoupdate
  • f6fb929 Merge pull request #449 from pre-commit/pre-commit-ci-update-config
  • 49e2b09 [pre-commit.ci] pre-commit autoupdate
  • 21189f2 Merge pull request #448 from pre-commit/pre-commit-ci-update-config
  • f583181 [pre-commit.ci] pre-commit autoupdate
  • 1397916 Merge pull request
    dependabot[bot] commented 4 months ago

    Looks like these dependencies are updatable in another way, so this is no longer needed.