From 9c8a581f4c35a5c4d5e44754069b151caf667194 Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Tue, 15 Oct 2024 11:02:57 +0200 Subject: [PATCH] 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). --- examples/advanced/sugarscape_g1mt/sugarscape_g1mt/model.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/advanced/sugarscape_g1mt/sugarscape_g1mt/model.py b/examples/advanced/sugarscape_g1mt/sugarscape_g1mt/model.py index d51b8bc0746..35e6d9e0e7b 100644 --- a/examples/advanced/sugarscape_g1mt/sugarscape_g1mt/model.py +++ b/examples/advanced/sugarscape_g1mt/sugarscape_g1mt/model.py @@ -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 @@ -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() diff --git a/pyproject.toml b/pyproject.toml index fd48a03005a..1d0c3bdf095 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = [