Skip to content

Commit 6940022

Browse files
Apply ruff/flake8-pie rules (PIE) (#9726)
* 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 <[email protected]>
1 parent ff41525 commit 6940022

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

ci/min_deps_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def parse_requirements(fname) -> Iterator[tuple[str, int, int, int | None]]:
6262
pkg, eq, version = row.partition("=")
6363
if pkg.rstrip("<>") in IGNORE_DEPS:
6464
continue
65-
if pkg.endswith("<") or pkg.endswith(">") or eq != "=":
65+
if pkg.endswith(("<", ">")) or eq != "=":
6666
error("package should be pinned with exact version: " + row)
6767
continue
6868

xarray/namedarray/parallelcompat.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ def load_chunkmanagers(
7575
emit_user_level_warning(
7676
f"Failed to load chunk manager entrypoint {entrypoint.name} due to {e}. Skipping.",
7777
)
78-
pass
7978

8079
available_chunkmanagers = {
8180
name: chunkmanager()

0 commit comments

Comments
 (0)