diff options
author | Michal Minar <miminar@redhat.com> | 2012-11-28 10:24:59 +0100 |
---|---|---|
committer | Michal Minar <miminar@redhat.com> | 2012-11-28 10:24:59 +0100 |
commit | 148b5b7d18c449b87b1103c05612ff2a2fe83233 (patch) | |
tree | 44ec8759acb37b79bae705550e37a8cb7885b20c /src/software/openlmi/__init__.py | |
parent | 084ed5a5ffe8dccd0436e880449a6b39863690a4 (diff) | |
download | openlmi-providers-148b5b7d18c449b87b1103c05612ff2a2fe83233.tar.gz openlmi-providers-148b5b7d18c449b87b1103c05612ff2a2fe83233.tar.xz openlmi-providers-148b5b7d18c449b87b1103c05612ff2a2fe83233.zip |
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'
Diffstat (limited to 'src/software/openlmi/__init__.py')
-rw-r--r-- | src/software/openlmi/__init__.py | 21 |
1 files changed, 21 insertions, 0 deletions
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 <miminar@redhat.com> +# +__import__('pkg_resources').declare_namespace(__name__) |