Skip to content

Commit

Permalink
[Auto-generated] Update dependencies (#173)
Browse files Browse the repository at this point in the history
Update dependencies in `pyproject.toml` (#165, #167, #169)
Bump SINTEF/ci-cd from 2.7.4 to 2.8.0 (#172)

Ignore all further major version updates for NumPy.

Update `pre-commit` hooks.

Change identity to url in validate_strict test.


Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Casper Welzel Andersen <[email protected]>
Co-authored-by: Casper Welzel Andersen <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
4 people authored Aug 5, 2024
1 parent 9a2ead7 commit dfe9d44
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
release:
name: External
uses: SINTEF/ci-cd/.github/workflows/cd_release.yml@v2.7.4
uses: SINTEF/ci-cd/.github/workflows/cd_release.yml@v2.8.0
if: github.repository == 'SINTEF/entities-service' && startsWith(github.ref, 'refs/tags/v')
with:
# General
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_automerge_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
update-dependencies-branch:
name: External
uses: SINTEF/ci-cd/.github/workflows/ci_automerge_prs.yml@v2.7.4
uses: SINTEF/ci-cd/.github/workflows/ci_automerge_prs.yml@v2.8.0
if: github.repository_owner == 'SINTEF' && ( ( startsWith(github.event.pull_request.head.ref, 'dependabot/') && github.actor == 'dependabot[bot]' ) || ( github.event.pull_request.head.ref == 'ci/update-pyproject' && github.actor == 'TEAM4-0' ) || ( github.event.pull_request.head.ref == 'pre-commit-ci-update-config' && github.actor == 'pre-commit-ci[bot]' ) )
secrets:
PAT: ${{ secrets.TEAM40_PAT }}
2 changes: 1 addition & 1 deletion .github/workflows/ci_cd_updated_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
update-deps-branch-and-docs:
name: External
uses: SINTEF/ci-cd/.github/workflows/ci_cd_updated_default_branch.yml@v2.7.4
uses: SINTEF/ci-cd/.github/workflows/ci_cd_updated_default_branch.yml@v2.8.0
if: github.repository_owner == 'SINTEF'
with:
# General
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/ci_check_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
check-dependencies:
name: External
uses: SINTEF/ci-cd/.github/workflows/ci_check_pyproject_dependencies.yml@v2.7.4
uses: SINTEF/ci-cd/.github/workflows/ci_check_pyproject_dependencies.yml@v2.8.0
if: github.repository_owner == 'SINTEF'
with:
git_username: "TEAM 4.0[bot]"
Expand All @@ -18,5 +18,8 @@ jobs:
python_version: "3.10"
install_extras: "[dev]"
pr_labels: "CI/CD,skip_changelog"
ignore: |
# Ignore all further major version updates for NumPy, i.e., keep it at 1.x.x
dependency-name=numpy...update-types=version-update:semver-major
secrets:
PAT: ${{ secrets.TEAM40_PAT }}
2 changes: 1 addition & 1 deletion .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
basic-tests:
name: External
uses: SINTEF/ci-cd/.github/workflows/ci_tests.yml@v2.7.4
uses: SINTEF/ci-cd/.github/workflows/ci_tests.yml@v2.8.0
with:
# General setup
install_extras: "[dev]"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_update_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
create-collected-pr:
name: External
uses: SINTEF/ci-cd/.github/workflows/ci_update_dependencies.yml@v2.7.4
uses: SINTEF/ci-cd/.github/workflows/ci_update_dependencies.yml@v2.8.0
if: github.repository_owner == 'SINTEF'
with:
# General
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.11.0
rev: v1.11.1
hooks:
- id: mypy
exclude: ^(docs/example|tests)/.*$
Expand Down
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ requires-python = "~=3.10"
dynamic = ["version", "description"]

dependencies = [
"fastapi ~=0.111.0",
"fastapi ~=0.112.0",
"httpx ~=0.27.0",
"pydantic-settings ~=2.3",
"pymongo ~=4.7",
"pydantic-settings ~=2.4",
"pymongo ~=4.8",
"python-dotenv ~=1.0",
"uvicorn >=0.24.0,<1",
]
Expand All @@ -57,12 +57,12 @@ cli = [
"typer[all] >=0.9.0,<1",
]
testing = [
"cryptography ~=42.0",
"cryptography ~=43.0",
"dlite-python ~=0.5.16",
"mongomock ~=4.1",
"numpy <2", # requirement for DLite v0.5.16, which does not support NumPy v2
"pytest ~=8.2",
"pytest-asyncio ~=0.23.7",
"pytest ~=8.3",
"pytest-asyncio ~=0.23.8",
"pytest-cov ~=5.0",
"pytest-httpx ~=0.30.0",
"entities-service[cli]",
Expand All @@ -71,7 +71,7 @@ server = [
"gunicorn >=21.2.0,<23",
]
dev = [
"pre-commit ~=3.7",
"pre-commit ~=3.8",
"entities-service[cli,testing]",
]

Expand Down
4 changes: 4 additions & 0 deletions tests/cli/commands/test_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1191,6 +1191,10 @@ def test_validate_strict(
if index % 2 == 0:
existing_entity_content = raw_entity.copy()

if id_key == "identity":
existing_entity_content["uri"] = existing_entity_content.pop("identity")
id_key = "uri"

# And for half of those, let's say they exist with different content
if index % 4 == 0:
if isinstance(existing_entity_content["properties"], dict):
Expand Down

0 comments on commit dfe9d44

Please sign in to comment.