Skip to content

Commit

Permalink
MAINT: address linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Jun 20, 2024
1 parent b5d6157 commit c318c40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pwa_pages/project_inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from typing import Callable, Dict, Iterable, List, Optional, Sequence, Union

import yaml
from pydantic import BaseModel, root_validator
from pydantic import BaseModel, model_validator
from pytablewriter import HtmlTableWriter

from .repo import Repo, get_repo
Expand Down Expand Up @@ -89,7 +89,7 @@ class ProjectInventory(BaseModel):
projects: List[Project]
collaborations: Dict[str, str] = {}

@root_validator(skip_on_failure=True)
@model_validator(mode="before")
def _check_collaboration_exists(cls, values: dict) -> dict: # noqa: N805
defined_collaborations = set(values["collaborations"])
project: Project
Expand Down

0 comments on commit c318c40

Please sign in to comment.