0172b5aacc
ensure the Python scripts in the doc and elements directories are PEP8 compliant. test_os_svc_daemon.py test is fixed in another patch: I9b1859f9fc5846c7c42606644231105618e1a1a0. Change-Id: If5068ef77d6643c19de36bfcf4b4bf790f86b538
24 lines
797 B
Bash
Executable File
24 lines
797 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright 2014 eNovance <licensing@enovance.com>
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
#
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
flake8
|
|
|
|
extra_python_files=$(egrep -R --null-data --files-with-matches "^#!/usr/bin/env python" elements/)
|
|
echo $extra_python_files
|
|
flake8 ${extra_python_files}
|