Skip to content

Commit

Permalink
Fix the new ruff rule warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Jan 13, 2025
1 parent 40c34ff commit a4f1eef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 1 addition & 5 deletions bowtie/tests/miniatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,7 @@ def has_bugs_by_versions(version: str):
lambda dialect: (
(lambda schema, registry: lambda instance: ARBITRARILY_INVALID)
if dialect == Dialect.by_alias()["2020"]
else (
(lambda schema, registry: lambda instance: None)
if dialect == Dialect.by_alias()["2019"]
else (lambda schema, registry: lambda instance: None)
)
else (lambda schema, registry: lambda instance: None)
),
)()
elif version == "2.0":
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ ignore = [
"RET505", # These push you to use `if` instead of `elif`, but for no reason
"RET506",
"RSE102", # Ha, what, who even knew you could leave the parens off. But no.
"RUF009", # Function calls are fine to do in fields.
"SIM300", # Not sure what heuristic this uses, but it's easily incorrect
"SLF001", # Private usage within this package itself is fine
"TD", # These TODO style rules are also silly
Expand Down

0 comments on commit a4f1eef

Please sign in to comment.