Skip to content

Commit

Permalink
[Auto-generated] Update dependencies (#216)
Browse files Browse the repository at this point in the history
* [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 <[email protected]>

* Update `pre-commit` hooks

---------

Co-authored-by: Casper Welzel Andersen <[email protected]>
  • Loading branch information
TEAM4-0 and CasperWA authored Jan 6, 2025
1 parent 2c7b9ec commit d77330f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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]
Expand All @@ -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"]
Expand All @@ -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)/.*$
Expand Down
4 changes: 2 additions & 2 deletions entities_service/cli/commands/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down Expand Up @@ -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,
),
Expand Down
19 changes: 10 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit d77330f

Please sign in to comment.