Skip to content

Commit

Permalink
Apply ruff/flake8-pie rule PIE810
Browse files Browse the repository at this point in the history
PIE810 Call `endswith` once with a `tuple`
  • Loading branch information
DimitriPapadopoulos committed Nov 6, 2024
1 parent db7ed86 commit d09cd0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/min_deps_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def parse_requirements(fname) -> Iterator[tuple[str, int, int, int | None]]:
pkg, eq, version = row.partition("=")
if pkg.rstrip("<>") in IGNORE_DEPS:
continue
if pkg.endswith("<") or pkg.endswith(">") or eq != "=":
if pkg.endswith(("<", ">")) or eq != "=":
error("package should be pinned with exact version: " + row)
continue

Expand Down

0 comments on commit d09cd0b

Please sign in to comment.