Skip to content

Commit 3200268

Browse files
committed
Make sure args are never unused
1 parent 32e5d8a commit 3200268

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ extend-select = [
7070
# Check docstring formatting. Many of these rules are intentionally ignored below.
7171
"D",
7272

73+
"ARG", # ARG; flake8-argparse: https://docs.astral.sh/ruff/rules/#flake8-unused-arguments-arg
7374
"E", # E; pycodestyle: https://docs.astral.sh/ruff/rules/#pycodestyle-e-w
7475
"F", # F; Pyflakes: https://docs.astral.sh/ruff/rules/#pyflakes-f
7576
"I", # I; isort: https://docs.astral.sh/ruff/rules/#isort-i
@@ -111,8 +112,8 @@ ignore = [
111112
]
112113

113114
[tool.ruff.lint.per-file-ignores]
114-
"examples/*" = ["D"]
115-
"tests/*" = ["D"]
115+
"examples/connect*" = ["D", "ARG"]
116+
"tests/posit/connect/*" = ["D", "ARG"]
116117

117118

118119
[tool.ruff.lint.pydocstyle]
@@ -130,7 +131,7 @@ exclude = ".*"
130131
[dependency-groups]
131132
build = ["build"]
132133
coverage = ["coverage"]
133-
examples = ["rsconnect-python", "pandas"]
134+
examples = ["rsconnect-python", "pandas", "databricks", "shiny"]
134135
git = ["pre-commit"]
135136
lint = ["ruff", "pyright"]
136137
test = ["rsconnect-python", "responses", "pytest", "pyjson5"]

0 commit comments

Comments
 (0)