Fix PEP8 violations

Fixes a couple pep8 issues in the bash8.py script
and some files from the cookiecutter template.

Change-Id: Iaa67e513b6f02cfdb97d0b87ca0f29db1ef51b29
This commit is contained in:
Mathew Odden 2014-05-02 00:43:17 -05:00
parent 7b7aa16221
commit eb1273f5ea
6 changed files with 7 additions and 5 deletions

View File

@ -16,4 +16,4 @@ import pbr.version
__version__ = pbr.version.VersionInfo(
'bash8').version_string()
'bash8').version_string()

View File

@ -102,6 +102,7 @@ def check_indents(line):
if (len(m.group('indent')) % 4) != 0:
print_error('E003: Indent not multiple of 4', line)
def check_function_decl(line):
failed = False
if line.startswith("function"):
@ -189,6 +190,7 @@ def check_files(files, verbose):
prev_line = logical_line
prev_lineno = fileinput.filelineno()
def get_options():
parser = argparse.ArgumentParser(
description='A bash script style checker')

View File

@ -10,4 +10,4 @@
# 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.
# under the License.

View File

@ -50,4 +50,4 @@ class TestCase(testtools.TestCase):
stderr = self.useFixture(fixtures.StringStream('stderr')).stream
self.useFixture(fixtures.MonkeyPatch('sys.stderr', stderr))
self.log_fixture = self.useFixture(fixtures.FakeLogger())
self.log_fixture = self.useFixture(fixtures.FakeLogger())

View File

@ -25,4 +25,4 @@ from bash8.tests import base
class TestBash8(base.TestCase):
def test_something(self):
pass
pass

View File

@ -19,4 +19,4 @@ import setuptools
setuptools.setup(
setup_requires=['pbr'],
pbr=True)
pbr=True)