Skip to content

Commit

Permalink
Exclude examples from ruff, fix remaining stuff
Browse files Browse the repository at this point in the history
Don't run ruff on the examples for now, and fix the remaining pre-commit issues (mainly codespell).
  • Loading branch information
EwoutH committed Oct 15, 2024
1 parent 9d0d6c0 commit 9c8a581
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/advanced/sugarscape_g1mt/sugarscape_g1mt/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(
enable_trade=True,
):
super().__init__()
# Initiate width and heigh of sugarscape
# Initiate width and height of sugarscape
self.width = width
self.height = height
# Initiate population attributes
Expand Down Expand Up @@ -133,7 +133,7 @@ def step(self):
self.agents_by_type[Resource].do("step")

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

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ path = "mesa/__init__.py"
# Hardcode to Python 3.10.
# Reminder to update mesa-examples if the value below is changed.
target-version = "py310"
extend-exclude = ["docs", "build"]
extend-exclude = ["docs", "build", "examples"]

[tool.ruff.lint]
select = [
Expand Down

0 comments on commit 9c8a581

Please sign in to comment.