Skip to content

Commit aeac384

Browse files
committed
pyproject.toml: Run ruff on basic examples, ignore docstring
- Only exclude examples/advanced from ruff, to start running ruff on the basic examples. - Ignore docstring errors in the example folder. Both can be revisited in the future.
1 parent 5aebe18 commit aeac384

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ path = "mesa/__init__.py"
9797
# Hardcode to Python 3.10.
9898
# Reminder to update mesa-examples if the value below is changed.
9999
target-version = "py310"
100-
extend-exclude = ["docs", "build", "examples"]
100+
extend-exclude = ["docs", "build", "examples/advanced"] # TODO: Remove examples/advanced
101101

102102
[tool.ruff.lint]
103103
select = [
@@ -148,5 +148,8 @@ extend-ignore = [
148148
"ISC001", # ruff format asks to disable this feature
149149
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
150150
]
151+
# Ignore all docstring errors in examples
152+
per-file-ignores = {"examples/*"= ["D"]}
153+
151154
[tool.ruff.lint.pydocstyle]
152155
convention = "google"

0 commit comments

Comments
 (0)