Skip to content

Commit

Permalink
Merge branch 'pydantic2' into queue
Browse files Browse the repository at this point in the history
  • Loading branch information
gpetretto committed Nov 10, 2023
2 parents e2429a9 + 5fe779f commit a60d5c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
requires-python = ">=3.9"
dependencies =[
"jobflow[strict]",
"pydantic<2",
"pydantic>=2.0.1",
"fireworks",
"fabric",
"tomlkit",
Expand Down
5 changes: 2 additions & 3 deletions src/jobflow_remote/config/settings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from __future__ import annotations

from pathlib import Path
from typing import Optional

from pydantic import Field, model_validator
from pydantic_settings import BaseSettings, SettingsConfigDict
Expand All @@ -20,7 +19,7 @@ class JobflowRemoteSettings(BaseSettings):
projects_folder: str = Field(
DEFAULT_PROJECTS_FOLDER, description="Location of the projects files."
)
project: str | None = Field(None, description="The name of the project used.")
project: Optional[str] = Field(None, description="The name of the project used.")
cli_full_exc: bool = Field(
False,
description="If True prints the full stack trace of the exception when raised in the CLI.",
Expand Down

0 comments on commit a60d5c5

Please sign in to comment.