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:
parent
7b7aa16221
commit
eb1273f5ea
@ -16,4 +16,4 @@ import pbr.version
|
||||
|
||||
|
||||
__version__ = pbr.version.VersionInfo(
|
||||
'bash8').version_string()
|
||||
'bash8').version_string()
|
||||
|
@ -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')
|
||||
|
@ -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.
|
||||
|
@ -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())
|
||||
|
@ -25,4 +25,4 @@ from bash8.tests import base
|
||||
class TestBash8(base.TestCase):
|
||||
|
||||
def test_something(self):
|
||||
pass
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user