From d77330fd702f2bffcf4874fe7eac32be21b6e98b Mon Sep 17 00:00:00 2001 From: "TEAM 4.0[bot]" Date: Tue, 7 Jan 2025 00:31:45 +0100 Subject: [PATCH] [Auto-generated] Update dependencies (#216) * [Auto-generated] Check & update dependencies (`pyproject.toml`) (#217) * Update dependencies in `pyproject.toml` * Loosen httpx-related packages Support httpx-auth. * Set upper limit on DLite-Python Use non-deprecated typer parameter 'autocompletion' instead of 'shell_complete' --------- Co-authored-by: Casper Welzel Andersen * Update `pre-commit` hooks --------- Co-authored-by: Casper Welzel Andersen --- .pre-commit-config.yaml | 8 ++++---- entities_service/cli/commands/config.py | 4 ++-- pyproject.toml | 19 ++++++++++--------- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 41443a9..bbb8442 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,7 +41,7 @@ repos: # Ruff is a code style and formatter # It works on files in-place - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.0 + rev: v0.8.6 hooks: - id: ruff args: @@ -51,7 +51,7 @@ repos: # Pyupgrade is a code upgrade tool # It works on files in-place - repo: https://github.com/asottile/pyupgrade - rev: v3.19.0 + rev: v3.19.1 hooks: - id: pyupgrade args: [--py310-plus] @@ -60,7 +60,7 @@ repos: # More information can be found in its documentation: # https://bandit.readthedocs.io/en/latest/ - repo: https://github.com/PyCQA/bandit - rev: 1.7.10 + rev: 1.8.0 hooks: - id: bandit args: ["-r"] @@ -72,7 +72,7 @@ repos: # The project's documentation can be found at: # https://mypy.readthedocs.io/en/stable/index.html - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.13.0 + rev: v1.14.1 hooks: - id: mypy exclude: ^(docs/example|tests)/.*$ diff --git a/entities_service/cli/commands/config.py b/entities_service/cli/commands/config.py index 2d9dd10..4ec8556 100644 --- a/entities_service/cli/commands/config.py +++ b/entities_service/cli/commands/config.py @@ -98,7 +98,7 @@ def set_config( f"{CONFIG.model_config['env_prefix'].upper()!r}." ), show_choices=True, - shell_complete=ConfigFields.autocomplete, + autocompletion=ConfigFields.autocomplete, case_sensitive=False, show_default=False, ), @@ -197,7 +197,7 @@ def unset( typer.Argument( help="Configuration option to unset.", show_choices=True, - shell_complete=ConfigFields.autocomplete, + autocompletion=ConfigFields.autocomplete, case_sensitive=False, show_default=False, ), diff --git a/pyproject.toml b/pyproject.toml index a7ea663..5aac6a1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,28 +42,29 @@ requires-python = "~=3.10" dynamic = ["version", "description"] dependencies = [ - "fastapi ~=0.115.5", - "httpx ~=0.27.2", - "pydantic-settings ~=2.6", + "fastapi ~=0.115.6", + "httpx >=0.27.2,<1", + "pydantic-settings ~=2.7", "pymongo ~=4.10", "python-dotenv ~=1.0", - "uvicorn ~=0.32.1", + "uvicorn ~=0.34.0", ] [project.optional-dependencies] cli = [ "httpx-auth ~=0.22.0", "pyyaml ~=6.0", - "typer ~=0.13.1", + "typer ~=0.15.1", ] testing = [ - "cryptography ~=43.0", - "dlite-python ~=0.5.23", + "cryptography >=43.0.0,<45", + # Pytest runs, end in Segmentation Fault for dlite-python versions >0.5.23 + "dlite-python <=0.5.23; python_version<'3.13'", # DLite is not yet compatible with Python 3.13 "mongomock ~=4.3", "pytest ~=8.3", - "pytest-asyncio ~=0.24.0", + "pytest-asyncio ~=0.25.1", "pytest-cov ~=6.0", - "pytest-httpx ~=0.34.0", + "pytest-httpx >=0.34.0,<1", "entities-service[cli]", ] server = [