Skip to content

Commit 94a1d77

Browse files
committed
Fix formatting issues
1 parent 3d30fff commit 94a1d77

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/dstack/_internal/cli/services/configurators/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ def register_args(cls, parser: argparse.ArgumentParser):
7878

7979

8080
class ApplyEnvVarsConfiguratorMixin(BaseApplyConfigurator):
81-
8281
@classmethod
8382
def register_args(cls, parser: argparse.ArgumentParser):
8483
super().register_args(parser)

src/dstack/_internal/core/models/envs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class Env(BaseModel):
5151
NB: this is *NOT* a CoreModel, pydantic-duality, which is used as a base
5252
for the CoreModel, doesn't play well with custom root models.
5353
"""
54+
5455
__root__: Union[
5556
List[Annotated[str, Field(regex=_ENV_STRING_REGEX)]],
5657
Dict[str, Union[str, EnvSentinel]],

src/tests/_internal/cli/services/configurators/test_fleet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ def test_env(self):
1919

2020
def test_env_override(self):
2121
conf = create_conf()
22-
conf.env=Env.parse_obj({"A": "0"})
22+
conf.env = Env.parse_obj({"A": "0"})
2323
modified, args = apply_args(conf, ["-e", "A=1", "--env", "B=2"])
2424
conf.env = Env.parse_obj({"A": "1", "B": "2"})
2525
assert modified.dict() == conf.dict()
2626

2727
def test_env_value_from_environ(self, monkeypatch: pytest.MonkeyPatch):
2828
monkeypatch.setenv("FROM_ENV", "2")
2929
conf = create_conf()
30-
conf.env=Env.parse_obj({"FROM_CONF": "1"})
30+
conf.env = Env.parse_obj({"FROM_CONF": "1"})
3131
modified, args = apply_args(conf, ["--env", "FROM_ENV"])
3232
conf.env = Env.parse_obj({"FROM_CONF": "1", "FROM_ENV": "2"})
3333
assert modified.dict() == conf.dict()

0 commit comments

Comments
 (0)