[default]
-bears = SpaceConsistencyBear
+bears = SpaceConsistencyBear,GitCommitBear
files = shell/*
allow_trailing_whitespace = False
enforce_newline_at_EOF = True
indent_size = 4
use_spaces = yeah
+[Python]
+bears = BanditBear,PyCommentedCodeBear,PyDocStyleBear,PyFlakesBear,PyImportSortBear
+files = lftools/**/*.py
+
[ShellCheck]
bears = ShellCheckBear
files = shell/*
+# @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
+##############################################################################
+# Copyright (c) 2017 The Linux Foundation and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# Thanh Ha - Initial implementation
+##############################################################################
+"""lftools package."""
-import click
+# @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
+##############################################################################
+# Copyright (c) 2017 The Linux Foundation and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# Thanh Ha - Initial implementation
+##############################################################################
+"""CLI main for lftools."""
import subprocess
+import click
+
+
@click.group()
@click.pass_context
@click.version_option()
def cli(ctx):
+ """CLI entry point for lftools."""
pass
+
###############################################################################
# Shell
###############################################################################
@click.argument('release-tag')
@click.pass_context
def version(ctx, command, release_tag):
- """Version bump script for Maven based projects
+ """Version bump script for Maven based projects.
Uses *release-tag* to bump versions for Maven projects.
"""
subprocess.call(['version', command, release_tag])
+
cli.add_command(version)
if __name__ == '__main__':