Skip to content

Commit ec22e41

Browse files
Disable PLR0913 in the interface layer (#1105)
1 parent 99c73c5 commit ec22e41

8 files changed

Lines changed: 8 additions & 9 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ lint.select = [
130130
]
131131
lint.ignore = [ "PLR2004", "S101", "SIM108" ]
132132
lint.per-file-ignores."!tests/**/*.py" = [ "ARG002", "PT" ]
133+
lint.per-file-ignores."src/usethis/_ui/interface/**/*.py" = [ "PLR0913" ]
133134
lint.per-file-ignores."tests/**/*.py" = [ "D", "INP", "S603", "TC" ]
134135
lint.flake8-bugbear.extend-immutable-calls = [ "typer.Argument", "typer.Option" ]
135136

src/usethis/_ui/interface/format_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
)
1313

1414

15-
def format_( # noqa: PLR0913
15+
def format_(
1616
remove: bool = remove_opt,
1717
how: bool = how_opt,
1818
offline: bool = offline_opt,

src/usethis/_ui/interface/init.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from usethis._ui.options import backend_opt, frozen_opt, offline_opt, quiet_opt
1414

1515

16-
def init( # noqa: PLR0913
16+
def init(
1717
doc: bool = typer.Option(
1818
True, "--doc/--no-doc", help="Add a recommended documentation framework."
1919
),
@@ -103,7 +103,7 @@ def init( # noqa: PLR0913
103103
raise typer.Exit(code=1) from None
104104

105105

106-
def _init( # noqa: PLR0913, PLR0915
106+
def _init( # noqa: PLR0915
107107
*,
108108
doc: bool,
109109
format_: bool,

src/usethis/_ui/interface/lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
)
1313

1414

15-
def lint( # noqa: PLR0913
15+
def lint(
1616
remove: bool = remove_opt,
1717
how: bool = how_opt,
1818
offline: bool = offline_opt,

src/usethis/_ui/interface/rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
)
1313

1414

15-
def rule( # noqa: PLR0913
15+
def rule(
1616
rules: list[str],
1717
remove: bool = remove_opt,
1818
ignore: bool = ignore_opt,

src/usethis/_ui/interface/spellcheck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
)
1313

1414

15-
def spellcheck( # noqa: PLR0913
15+
def spellcheck(
1616
remove: bool = remove_opt,
1717
how: bool = how_opt,
1818
offline: bool = offline_opt,

src/usethis/_ui/interface/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
)
1313

1414

15-
def test( # noqa: PLR0913
15+
def test(
1616
remove: bool = remove_opt,
1717
how: bool = how_opt,
1818
offline: bool = offline_opt,

src/usethis/_ui/interface/tool.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
app = typer.Typer(help="Add and configure individual tools.", add_completion=False)
2222

23-
# ruff: noqa: PLR0913 since there are many options for these commands.
24-
2523

2624
@app.command(
2725
name="codespell",

0 commit comments

Comments
 (0)