Compare commits

..

1 Commits

Author SHA1 Message Date
dependabot[bot]
7486993118 ci: bump virtualenv from 20.27.1 to 20.35.3 in /.github/workflows
Bumps [virtualenv](https://github.com/pypa/virtualenv) from 20.27.1 to 20.35.3.
- [Release notes](https://github.com/pypa/virtualenv/releases)
- [Changelog](https://github.com/pypa/virtualenv/blob/main/docs/changelog.rst)
- [Commits](https://github.com/pypa/virtualenv/compare/20.27.1...20.35.3)

---
updated-dependencies:
- dependency-name: virtualenv
  dependency-version: 20.35.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-13 01:02:42 +00:00
2 changed files with 11 additions and 11 deletions

View File

@@ -2,5 +2,5 @@ pip==24.2
nox==2024.10.9
nox-poetry==1.0.3
poetry==1.8.4
virtualenv==20.27.1
virtualenv==20.35.3
toml==0.10.2

View File

@@ -128,33 +128,33 @@ class CheckCreate(BaseModel):
@field_validator("schedule")
@classmethod
def validate_schedule(cls, value: str | None) -> str:
def validate_schedule(cls, value: str) -> str:
"""Validates that the schedule is a valid cron expression."""
if value and not croniter.is_valid(value):
if not croniter.is_valid(value):
raise ValueError("Schedule is not a valid cron expression")
return value
@field_validator("tz")
@classmethod
def validate_tz(cls, value: str | None) -> str:
def validate_tz(cls, value: str) -> str:
"""Validates that the timezone is a valid timezone string."""
if value and value not in pytz.all_timezones:
if value not in pytz.all_timezones:
raise ValueError("Tz is not a valid timezone")
return value
@field_validator("methods")
@classmethod
def validate_methods(cls, value: str | None) -> str:
def validate_methods(cls, value: str) -> str:
"""Validate that methods."""
if value and value != "POST":
raise ValueError("Methods is invalid, it should be either an empty string, None, or POST")
return ""
if value not in ("", "POST"):
raise ValueError("Methods is invalid, it should be either an empty string or POST")
return value
@field_validator("unique")
@classmethod
def validate_unique(cls, value: List[Optional[str]] | None) -> List[Optional[str]]:
def validate_unique(cls, value: List[Optional[str]]) -> List[Optional[str]]:
"""Validate unique list."""
for unique in value or []:
for unique in value:
if unique not in ("name", "tags", "timeout", "grace"):
raise ValueError(
"Unique is not valid. Unique can only be name, tags, timeout, and grace or an empty list"