Skip to content

Commit a87d382

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5bc7b95 commit a87d382

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

mesa/examples/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
from mesa.examples.advanced.pd_grid.model import PdGrid
33
from mesa.examples.advanced.sugarscape_g1mt.model import SugarscapeG1mt
44
from mesa.examples.advanced.wolf_sheep.model import WolfSheep
5+
from mesa.examples.basic.alliance_formation_model.model import AllianceModel
56
from mesa.examples.basic.boid_flockers.model import BoidFlockers
67
from mesa.examples.basic.boltzmann_wealth_model.model import BoltzmannWealth
78
from mesa.examples.basic.conways_game_of_life.model import ConwaysGameOfLife
89
from mesa.examples.basic.schelling.model import Schelling
910
from mesa.examples.basic.virus_on_network.model import VirusOnNetwork
10-
from mesa.examples.basic.alliance_formation_model.model import AllianceModel
1111

1212
__all__ = [
1313
"AllianceModel",

mesa/examples/basic/alliance_formation_model/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import networkx as nx
33
import solara
44
from matplotlib.figure import Figure
5-
from mesa.examples.basic.alliance_formation_model.model import AllianceModel
65

6+
from mesa.examples.basic.alliance_formation_model.model import AllianceModel
77
from mesa.mesa_logging import DEBUG, log_to_stderr
88
from mesa.visualization import SolaraViz
99
from mesa.visualization.utils import update_counter

mesa/examples/basic/alliance_formation_model/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import networkx as nx
22
import numpy as np
3-
from mesa.examples.basic.alliance_formation_model.agents import AllianceAgent
43

54
import mesa
5+
from mesa.examples.basic.alliance_formation_model.agents import AllianceAgent
66

77

88
class AllianceModel(mesa.Model):

tests/test_examples.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ def test_wolf_sheep(): # noqa: D103
108108
WolfSheep(seed=42, simulator=simulator)
109109
simulator.run_for(10)
110110

111+
111112
def test_alliance_formation_model(): # noqa: D103
112113
from mesa.examples.basic.alliance_formation_model import app
113114

0 commit comments

Comments
 (0)