diff --git a/test/check_checksums.py b/test/check_checksums.py index e8eb4374..fa1756ae 100755 --- a/test/check_checksums.py +++ b/test/check_checksums.py @@ -42,7 +42,7 @@ def check_checksums(package): command = ['./pmbootstrap.py', 'checksum', package] try: subprocess.check_output(command) - except subprocess.CalledProcessError as e: + except subprocess.CalledProcessError: print("Something gone wrong in pmbootstrap. Log:") logfile = os.path.expanduser("~/.local/var/pmbootstrap/log.txt") with open(logfile) as log: diff --git a/test/static_code_analysis.sh b/test/static_code_analysis.sh index bc02d393..7ac3cfc4 100755 --- a/test/static_code_analysis.sh +++ b/test/static_code_analysis.sh @@ -67,10 +67,9 @@ done # E722: do not use bare except cd "$DIR"/.. echo "Test with flake8: *.py" -echo "NOTE: Run 'autopep8 -ria $PWD' to fix code style issues" # Note: omitting a virtualenv if it is here (e.g. gitlab CI) py_files="$(find . -not -path '*/venv/*' -name '*.py')" -_ignores="E501,E402,E722" +_ignores="E501,E402,E722,W504,W605" # shellcheck disable=SC2086 flake8 --exclude=__init__.py --ignore "$_ignores" $py_files # shellcheck disable=SC2086