Skip to content

Commit

Permalink
Sync code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alexamici committed Mar 7, 2023
1 parent 8e3dc9f commit af99d45
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion cads_broker/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def get_tasks_on_scheduler(dask_scheduler: distributed.Scheduler) -> dict[str, s

@attrs.define
class Broker:

client: distributed.Client
max_running_requests: int
wait_time: float = float(os.getenv("BROKER_WAIT_TIME", 2))
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering"
]
description = "CADS broker service"
dynamic = ["version"]
license = {file = "LICENSE"}
name = "cads-broker"
readme = "README.md"
dependencies = [
"attrs",
"cacholote",
Expand All @@ -26,6 +21,11 @@ dependencies = [
"sqlalchemy-utils",
"typer"
]
description = "CADS broker service"
dynamic = ["version"]
license = {file = "LICENSE"}
name = "cads-broker"
readme = "README.md"

[project.scripts]
broker = "cads_broker.entry_points:main"
Expand Down
2 changes: 1 addition & 1 deletion request.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
"config": {}
},
"metadata": {}
}
}
1 change: 0 additions & 1 deletion tests/test_20_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ def mock_system_request(
def test_broker_update_database(
mocker: pytest_mock.plugin.MockerFixture, session_obj: sa.orm.sessionmaker
) -> None:

broker = dispatcher.Broker(
client=CLIENT, max_running_requests=1, session_maker=session_obj
)
Expand Down

0 comments on commit af99d45

Please sign in to comment.