Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#68)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.6.7 → v0.6.8](astral-sh/ruff-pre-commit@v0.6.7...v0.6.8)
- [github.com/PyCQA/bandit: 1.7.9 → 1.7.10](PyCQA/bandit@1.7.9...1.7.10)

* Add timeout to httpx client

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Casper Welzel Andersen <casper.w.andersen@sintef.no>
  • Loading branch information
pre-commit-ci[bot] and CasperWA authored Oct 1, 2024
1 parent 0f9fafe commit 01863eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ repos:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.7
rev: v0.6.8
hooks:
- id: ruff
args:
Expand All @@ -47,7 +47,7 @@ repos:
- "--no-unsafe-fixes"

- repo: https://github.com/PyCQA/bandit
rev: 1.7.9
rev: 1.7.10
hooks:
- id: bandit
args: ["-r"]
Expand Down
2 changes: 1 addition & 1 deletion s7/pydantic_models/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def try_load_from_url(
"assert_dict_exception_msg should be a string when assert_dict is True."
)

with httpx.Client(follow_redirects=True) as client:
with httpx.Client(follow_redirects=True, timeout=10) as client:
try:
response = client.get(
str(source),
Expand Down

0 comments on commit 01863eb

Please sign in to comment.