container: Ignore flake8 error 'line too long' in bash script text

Also add container script to flake8 test in gitlab-ci.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Veiko Aasa 2022-08-09 19:42:24 +03:00
parent bd71f9667c
commit 12d02fecfb
No known key found for this signature in database
GPG Key ID: 478539CAE680674E
2 changed files with 4 additions and 5 deletions

View File

@ -16,7 +16,7 @@ code-quality:
stage: test
needs: []
script:
- python3 -m flake8 --exclude actions/domainname-change,actions/dynamicdns,actions/hostname-change,actions/networks plinth actions/*
- python3 -m flake8 --exclude actions/domainname-change,actions/dynamicdns,actions/hostname-change,actions/networks container plinth actions/*
unit-tests:
stage: test

View File

@ -177,7 +177,7 @@ sudo chmod --recursive --silent a+w htmlcov
sudo chmod --silent a+w .coverage
exit 0
'''
''' # noqa
SETUP_AND_RUN_TESTS_SCRIPT = '''
set -x
@ -917,9 +917,8 @@ def _get_ssh_command(ip_address, distribution):
return [
'ssh', '-Y', '-C', '-t', '-i',
str(public_key), '-o', 'LogLevel=error', '-o',
'StrictHostKeyChecking=no', '-o', 'UserKnownHostsFile=/dev/null',
'-o', 'IdentitiesOnly=yes',
f'fbx@{ip_address}'
'StrictHostKeyChecking=no', '-o', 'UserKnownHostsFile=/dev/null', '-o',
'IdentitiesOnly=yes', f'fbx@{ip_address}'
]