Skip to content

Commit 357fe89

Browse files
chore: suppress new ruff rules in cli module
1 parent 7cee0cf commit 357fe89

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎cmethods/__init__.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,21 @@
5959
__all__ = ["adjust"]
6060

6161

62-
def print_version(
62+
def print_version( # ruff: ignore[non-empty-init-module]
6363
ctx: Context,
64-
param: Any, # noqa: ARG001
64+
param: Any, # ruff: ignore[unused-function-argument]
6565
value: Any,
6666
) -> None:
6767
"""Prints the version of the package"""
6868
if not value or ctx.resilient_parsing:
6969
return
70-
from importlib.metadata import version # noqa: PLC0415
70+
from importlib.metadata import version # ruff: ignore[import-outside-top-level]
7171

7272
echo(version("python-cmethods"))
7373
ctx.exit()
7474

7575

76-
@command(
76+
@command( # ruff: ignore[non-empty-init-module]
7777
context_settings={
7878
"auto_envvar_prefix": "CMETHODS",
7979
"help_option_names": ["-h", "--help"],
@@ -147,7 +147,7 @@ def print_version(
147147
"--output",
148148
required=True,
149149
type=str,
150-
callback=lambda _, __, value: (value if value.endswith(".nc") else f"{value}.nc"),
150+
callback=lambda _, __, value: value if value.endswith(".nc") else f"{value}.nc",
151151
help="Output file name",
152152
)
153153
@option_group(
@@ -189,7 +189,7 @@ def cli(**kwargs) -> None:
189189
)
190190
log = logging.getLogger(__name__)
191191
log.info("Loading data sets ...")
192-
try:
192+
try: # ruff: ignore[too-many-statements-in-try-clause]
193193
for key, message in zip(
194194
("obs", "simh", "simp"),
195195
(

0 commit comments

Comments
 (0)