From 148b5b7d18c449b87b1103c05612ff2a2fe83233 Mon Sep 17 00:00:00 2001 From: Michal Minar Date: Wed, 28 Nov 2012 10:24:59 +0100 Subject: added pylintlmi checker for python source checking pylintlmi uses pylint (python source code checking utility) - giving it custom configuration for openlmi project and plugins with additional checks for usage see src/software/README renamed directory "src/software/providers" to "src/software/openlmi/software" * allows installation to custom PYTHONPATH together with openlmi-python egg * that also allows running pylint on sources in devel directory without messages like: W0403: 28,0: Relative import 'openlmi.software.core', should be 'openlmi.software.openlmi.software.core' E0611: 28,0: No name 'software' in module 'openlmi' F0401: 28,0: Unable to import 'openlmi.software.core' --- src/software/openlmi/__init__.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/software/openlmi/__init__.py (limited to 'src/software/openlmi/__init__.py') diff --git a/src/software/openlmi/__init__.py b/src/software/openlmi/__init__.py new file mode 100644 index 0000000..085d611 --- /dev/null +++ b/src/software/openlmi/__init__.py @@ -0,0 +1,21 @@ +# Software Management Providers +# +# Copyright (C) 2012 Red Hat, Inc. All rights reserved. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# +# Authors: Michal Minar +# +__import__('pkg_resources').declare_namespace(__name__) -- cgit