Skip to content

Commit

Permalink
Apply ruff/flake8-pie rules (PIE) (#9726)
Browse files Browse the repository at this point in the history
* Apply ruff/flake8-pie rule PIE790

PIE790 Unnecessary `pass` statement

* Apply ruff/flake8-pie rule PIE810

PIE810 Call `endswith` once with a `tuple`

---------

Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
  • Loading branch information
DimitriPapadopoulos and dcherian authored Nov 6, 2024
1 parent ff41525 commit 6940022
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
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
1 change: 0 additions & 1 deletion xarray/namedarray/parallelcompat.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ def load_chunkmanagers(
emit_user_level_warning(
f"Failed to load chunk manager entrypoint {entrypoint.name} due to {e}. Skipping.",
)
pass

available_chunkmanagers = {
name: chunkmanager()
Expand Down

0 comments on commit 6940022

Please sign in to comment.