Skip to content

Commit dfa0e7b

Browse files
committed
style: linting
1 parent f0bf4cc commit dfa0e7b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

pyaptly/publish.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def publish_cmd_update(cfg, publish_name, publish_config, ignore_existing=False)
8989
# TODO: Fail gracefully and show an error when there is no existing publish
9090
try:
9191
current_snapshots = state_reader.state_reader().publish_map()[publish_fullname]
92-
except KeyError: # pragma: no cover
92+
except KeyError: # pragma: no cover
9393
util.exit_with_error(f"The publish {publish_fullname} hasn't been created yet.")
9494
if "snapshots" in publish_config:
9595
snapshots_config = publish_config["snapshots"]
@@ -140,7 +140,10 @@ def publish_cmd_update(cfg, publish_name, publish_config, ignore_existing=False)
140140
current_snapshot = snap_name
141141
break
142142
if current_snapshot is None:
143-
lg.warning("Snapshot %s doesn't exist on to-be archived publish %s." % (snap["name"], publish_fullname))
143+
lg.warning(
144+
"Snapshot %s doesn't exist on to-be archived publish %s."
145+
% (snap["name"], publish_fullname)
146+
)
144147
else:
145148
snapshot.clone_snapshot(current_snapshot, archive).execute()
146149

pyaptly/tests/test_publish.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def test_publish_update_wrong_snapshots(config, publish_create, freeze):
199199
freeze.move_to("2012-10-11 10:10:10")
200200
args = ["-c", config, "snapshot", "create"]
201201
main.main(args)
202-
args = ["-c", config.replace('.toml','-bad.toml'), "publish", "update"]
202+
args = ["-c", config.replace(".toml", "-bad.toml"), "publish", "update"]
203203
main.main(args)
204204
state = state_reader.SystemStateReader()
205205
expect = set(

0 commit comments

Comments
 (0)