Skip to content

Commit e2a115b

Browse files
authored
Merge branch 'main' into main
2 parents 96137d4 + c0552b1 commit e2a115b

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,31 @@ ci:
44
repos:
55
- repo: https://github.com/astral-sh/ruff-pre-commit
66
# Ruff version.
7-
rev: v0.8.6
7+
rev: v0.9.9
88
hooks:
99
# Run the linter.
10-
# TODO fix the lint issues for the Jupyter notebooks
1110
- id: ruff
12-
types_or: [ python, pyi ]
11+
types_or: [ python, pyi, jupyter ]
12+
args: [--fix]
1313
# Run the formatter.
1414
- id: ruff-format
1515
types_or: [ python, pyi, jupyter ]
1616
- repo: https://github.com/asottile/pyupgrade
1717
rev: v3.19.1
1818
hooks:
1919
- id: pyupgrade
20-
args: [--py38-plus]
20+
args: [--py311-plus]
2121
- repo: https://github.com/pre-commit/pre-commit-hooks
2222
rev: v5.0.0 # Use the ref you want to point at
2323
hooks:
2424
- id: trailing-whitespace
2525
- id: check-toml
2626
- id: check-yaml
27+
- repo: https://github.com/codespell-project/codespell
28+
rev: v2.4.1
29+
hooks:
30+
- id: codespell
31+
args: [
32+
"--ignore-words",
33+
".codespellignore",
34+
]

examples/warehouse/model.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import mesa
2-
from agents import (
2+
from make_warehouse import make_warehouse
3+
from mesa.discrete_space import OrthogonalMooreGrid
4+
from mesa.discrete_space.cell_agent import CellAgent
5+
from mesa.experimental.meta_agents.meta_agent import create_meta_agent
6+
7+
from .agents import (
38
InventoryAgent,
49
RouteAgent,
510
SensorAgent,
611
WorkerAgent,
712
)
8-
from make_warehouse import make_warehouse
9-
from mesa.discrete_space import OrthogonalMooreGrid
10-
from mesa.discrete_space.cell_agent import CellAgent
11-
from mesa.experimental.meta_agents.meta_agent import create_meta_agent
1213

1314
# Constants for configuration
1415
LOADING_DOCKS = [(0, 0, 0), (0, 2, 0), (0, 4, 0), (0, 6, 0), (0, 8, 0)]

0 commit comments

Comments
 (0)