Skip to content

Commit 9c8a581

Browse files
committed
Exclude examples from ruff, fix remaining stuff
Don't run ruff on the examples for now, and fix the remaining pre-commit issues (mainly codespell).
1 parent 9d0d6c0 commit 9c8a581

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/advanced/sugarscape_g1mt/sugarscape_g1mt/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __init__(
5555
enable_trade=True,
5656
):
5757
super().__init__()
58-
# Initiate width and heigh of sugarscape
58+
# Initiate width and height of sugarscape
5959
self.width = width
6060
self.height = height
6161
# Initiate population attributes
@@ -133,7 +133,7 @@ def step(self):
133133
self.agents_by_type[Resource].do("step")
134134

135135
# step trader agents
136-
# to account for agent death and removal we need a seperate data strcuture to
136+
# to account for agent death and removal we need a separate data structure to
137137
# iterate
138138
trader_shuffle = self.agents_by_type[Trader].shuffle()
139139

pyproject.toml

Lines changed: 1 addition & 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"]
100+
extend-exclude = ["docs", "build", "examples"]
101101

102102
[tool.ruff.lint]
103103
select = [

0 commit comments

Comments
 (0)