Skip to content

Commit 106d7ac

Browse files
[pre-commit.ci] pre-commit autoupdate (#579)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.4 → v0.8.0](astral-sh/ruff-pre-commit@v0.7.4...v0.8.0) - [github.com/igorshubovych/markdownlint-cli: v0.42.0 → v0.43.0](igorshubovych/markdownlint-cli@v0.42.0...v0.43.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 62e7477 commit 106d7ac

File tree

15 files changed

+54
-54
lines changed

15 files changed

+54
-54
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ repos:
99
- id: trailing-whitespace
1010
- id: end-of-file-fixer
1111
- repo: https://github.com/astral-sh/ruff-pre-commit
12-
rev: v0.7.4
12+
rev: v0.8.0
1313
hooks:
1414
- id: ruff-format
1515
types_or: [python, pyi, jupyter]
1616
- id: ruff
1717
types_or: [python, pyi, jupyter]
1818
args: [--fix]
1919
- repo: https://github.com/igorshubovych/markdownlint-cli
20-
rev: v0.42.0
20+
rev: v0.43.0
2121
hooks:
2222
- id: markdownlint-fix
2323
- repo: https://github.com/kynan/nbstripout

src/muse/agents/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"AbstractAgent",
33
"Agent",
44
"InvestingAgent",
5-
"factory",
65
"agents_factory",
76
"create_agent",
7+
"factory",
88
]
99

1010
from muse.agents.agent import AbstractAgent, Agent, InvestingAgent

src/muse/decisions.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ def weighted_sum(objectives: Dataset, parameters: Any, **kwargs) -> DataArray:
2727
"""
2828

2929
__all__ = [
30-
"register_decision",
31-
"mean",
32-
"weighted_sum",
33-
"lexical_comparison",
34-
"retro_lexical_comparison",
3530
"epsilon_constraints",
31+
"factory",
32+
"lexical_comparison",
33+
"mean",
34+
"register_decision",
3635
"retro_epsilon_constraints",
36+
"retro_lexical_comparison",
3737
"single_objective",
38-
"factory",
38+
"weighted_sum",
3939
]
4040
from collections.abc import Mapping, MutableMapping, Sequence
4141
from typing import (

src/muse/demand_share.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ def demand_share(
3838
"""
3939

4040
__all__ = [
41-
"new_and_retro",
41+
"DEMAND_SHARE_SIGNATURE",
4242
"factory",
43+
"new_and_retro",
4344
"register_demand_share",
4445
"unmet_demand",
4546
"unmet_forecasted_demand",
46-
"DEMAND_SHARE_SIGNATURE",
4747
]
4848
from collections.abc import Hashable, Mapping, MutableMapping, Sequence
4949
from typing import (

src/muse/filters.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,20 @@ def search_space_initializer(
7474
"""
7575

7676
__all__ = [
77+
"compress",
78+
"currently_existing_tech",
79+
"currently_referenced_tech",
7780
"factory",
78-
"register_filter",
79-
"register_initializer",
8081
"identity",
82+
"initialize_from_technologies",
83+
"maturity",
8184
"reduce_asset",
82-
"similar_technology",
85+
"register_filter",
86+
"register_initializer",
8387
"same_enduse",
8488
"same_fuels",
85-
"currently_existing_tech",
86-
"currently_referenced_tech",
87-
"maturity",
88-
"compress",
89+
"similar_technology",
8990
"with_asset_technology",
90-
"initialize_from_technologies",
9191
]
9292

9393
from collections.abc import Mapping, MutableMapping, Sequence

src/muse/hooks.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
"""Pre and post hooks on agents."""
22

33
__all__ = [
4-
"register_initial_asset_transform",
5-
"register_final_asset_transform",
6-
"noop",
4+
"asset_merge_factory",
75
"clean",
8-
"old_assets_only",
6+
"housekeeping_factory",
97
"merge_assets",
108
"new_assets_only",
11-
"housekeeping_factory",
12-
"asset_merge_factory",
9+
"noop",
10+
"old_assets_only",
11+
"register_final_asset_transform",
12+
"register_initial_asset_transform",
1313
]
1414
from collections.abc import Mapping, MutableMapping
1515
from typing import Callable, Union

src/muse/interactions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
"""
1616

1717
__all__ = [
18-
"register_interaction_net",
19-
"register_agent_interaction",
2018
"factory",
2119
"new_to_retro_net",
20+
"register_agent_interaction",
21+
"register_interaction_net",
2222
"transfer_assets",
2323
]
2424

src/muse/investments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ def investment(
4242
"""
4343

4444
__all__ = [
45+
"INVESTMENT_SIGNATURE",
4546
"adhoc_match_demand",
4647
"cliff_retirement_profile",
4748
"register_investment",
48-
"INVESTMENT_SIGNATURE",
4949
]
5050
from collections.abc import Mapping, MutableMapping
5151
from typing import (

src/muse/objectives.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,18 @@ def comfort(
4848
"""
4949

5050
__all__ = [
51-
"register_objective",
51+
"capacity_to_service_demand",
52+
"capital_costs",
5253
"comfort",
5354
"efficiency",
54-
"fixed_costs",
55-
"capital_costs",
5655
"emission_cost",
56+
"equivalent_annual_cost",
57+
"factory",
58+
"fixed_costs",
5759
"fuel_consumption_cost",
5860
"lifetime_levelized_cost_of_energy",
5961
"net_present_value",
60-
"equivalent_annual_cost",
61-
"capacity_to_service_demand",
62-
"factory",
62+
"register_objective",
6363
]
6464

6565
from collections.abc import Mapping, MutableMapping, Sequence

src/muse/outputs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__all__ = ["sector", "sinks", "register_output_sink"]
1+
__all__ = ["register_output_sink", "sector", "sinks"]
22
from muse.outputs import sector, sinks
33
from muse.outputs.sinks import register_output_sink

0 commit comments

Comments
 (0)