Skip to content

Commit

Permalink
Add keyword requirement (frequenz-floss#104)
Browse files Browse the repository at this point in the history
Addresses nox failure in PR frequenz-floss#103
  • Loading branch information
flora-hofmann-frequenz authored Oct 4, 2024
2 parents ce2a7c7 + 5bd1474 commit 6d7b09f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

## Upgrading

* Enforce keyword arguments in 'run' function of 'main' module

## New Features

Expand Down
13 changes: 7 additions & 6 deletions src/frequenz/client/reporting/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ def main() -> None:
args = parser.parse_args()
asyncio.run(
run(
args.mid,
args.cid,
args.metrics,
args.start,
args.end,
args.resolution,
microgrid_id=args.mid,
component_id=args.cid,
metric_names=args.metrics,
start_dt=args.start,
end_dt=args.end,
resolution=args.resolution,
states=args.states,
bounds=args.bounds,
service_address=args.url,
Expand All @@ -87,6 +87,7 @@ def main() -> None:

# pylint: disable=too-many-arguments, too-many-locals
async def run(
*,
microgrid_id: int,
component_id: int,
metric_names: list[str],
Expand Down

0 comments on commit 6d7b09f

Please sign in to comment.