Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit 349dbd1

Browse files
committed
Fix W504
Also ignore W503 since both are reported and conflict. See https://gitlab.com/pycqa/flake8/-/issues/463
1 parent c51fb62 commit 349dbd1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[flake8]
2-
ignore = E126,E131,E501,E303,E302,W391
2+
ignore = E126,E131,E501,E303,E302,W391,W503
33
exclude =
44
.git,
55
__pycache__,

templates/build_deploy.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ def do_rsync(source):
189189
'UserKnownHostsFile=/dev/null '
190190
'-o '
191191
'StrictHostKeyChecking=no '
192-
'-i ' +
193-
os.path.expanduser('~/.ssh/{}_id.rsa'.format(name)),
192+
'-i '
193+
+ os.path.expanduser('~/.ssh/{}_id.rsa'.format(name)),
194194
'--delete-after',
195195
'-rltogvz',
196196
'--omit-dir-times',
@@ -247,9 +247,9 @@ def do_rsync(source):
247247
last_build = datetime.datetime.fromtimestamp(
248248
int(status.get("last_build", "0")))
249249

250-
if ('regular_rebuild_interval' in config and
251-
datetime.datetime.now() - last_build >
252-
datetime.timedelta(hours=config['regular_rebuild_interval'])):
250+
if ('regular_rebuild_interval' in config
251+
and datetime.datetime.now() - last_build
252+
> datetime.timedelta(hours=config['regular_rebuild_interval'])):
253253
start_build = True
254254

255255
current_commit = get_last_commit(checkout_dir)

0 commit comments

Comments
 (0)