Skip to content

Commit

Permalink
Upgrade ruff
Browse files Browse the repository at this point in the history
Signed-off-by: John Strunk <[email protected]>
  • Loading branch information
JohnStrunk committed Dec 23, 2024
1 parent e196fac commit c559202
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ repos:
args: ["--strict", "-c", ".github/yamllint-config.yml"]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.7.4"
rev: "v0.8.4"
hooks:
# Note: lint/fix before format
- id: ruff # Run the linter.
Expand All @@ -62,7 +62,7 @@ repos:
- id: markdownlint

- repo: https://github.com/renovatebot/pre-commit-hooks
rev: "39.82.1"
rev: "39.82.3"
hooks:
- id: renovate-config-validator
language_version: lts # Use the LTS version of Node.js
7 changes: 2 additions & 5 deletions raceinfo/heatdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,8 @@ def __post_init__(self):
if self.age < 0:
raise ValueError("Age must be non-negative")
if (
not isinstance(self.seed_time, NumericTime)
and self.seed_time != NT
or isinstance(self.seed_time, NumericTime)
and self.seed_time < 0
):
not isinstance(self.seed_time, NumericTime) and self.seed_time != NT
) or (isinstance(self.seed_time, NumericTime) and self.seed_time < 0):
raise ValueError("Seed time must be non-negative or NT")
# Mark the lane as empty if there are no times or all times are zero
# and there's no name or team
Expand Down

0 comments on commit c559202

Please sign in to comment.