Minor things noticed when syncing common code between maemo projects
authorepage <eopage@byu.net>
Fri, 27 Mar 2009 00:55:54 +0000 (00:55 +0000)
committerepage <eopage@byu.net>
Fri, 27 Mar 2009 00:55:54 +0000 (00:55 +0000)
git-svn-id: file:///svnroot/gc-dialer/trunk@258 c39d3808-3fe2-4d86-a59f-b7f623ee9f21

Makefile
src/__init__.py
support/pylint.rc

index d92ac3f..e943777 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ TODO_FILE=./TODO
 DEBUGGER=winpdb
 UNIT_TEST=nosetests --with-doctest -w .
 SYNTAX_TEST=support/test_syntax.py
 DEBUGGER=winpdb
 UNIT_TEST=nosetests --with-doctest -w .
 SYNTAX_TEST=support/test_syntax.py
-STYLE_TEST=../../Python/tools/pep8.py --ignore=W191
+STYLE_TEST=../../Python/tools/pep8.py --ignore=W191,E501
 LINT_RC=./support/pylint.rc
 LINT=pylint --rcfile=$(LINT_RC)
 PROFILE_GEN=python -m cProfile -o .profile
 LINT_RC=./support/pylint.rc
 LINT=pylint --rcfile=$(LINT_RC)
 PROFILE_GEN=python -m cProfile -o .profile
@@ -38,7 +38,6 @@ test: $(OBJ)
        $(UNIT_TEST)
 
 build: $(OBJ)
        $(UNIT_TEST)
 
 build: $(OBJ)
-       @# @todo Add a PYC generation step
        rm -Rf $(BUILD_PATH)
        mkdir $(BUILD_PATH)
        cp $(SOURCE_PATH)/$(PROJECT_NAME).py  $(BUILD_PATH)
        rm -Rf $(BUILD_PATH)
        mkdir $(BUILD_PATH)
        cp $(SOURCE_PATH)/$(PROJECT_NAME).py  $(BUILD_PATH)
index e69de29..4265cc3 100644 (file)
@@ -0,0 +1 @@
+#!/usr/bin/env python
index 404f6dc..37b9725 100644 (file)
@@ -1,11 +1,11 @@
 # lint Python modules using external checkers.
 # lint Python modules using external checkers.
-# 
+#
 # This is the main checker controling the other ones and the reports
 # generation. It is itself both a raw checker and an astng checker in order
 # to:
 # * handle message activation / deactivation at the module level
 # * handle some basic but necessary stats'data (number of classes, methods...)
 # This is the main checker controling the other ones and the reports
 # generation. It is itself both a raw checker and an astng checker in order
 # to:
 # * handle message activation / deactivation at the module level
 # * handle some basic but necessary stats'data (number of classes, methods...)
-# 
+#
 [MASTER]
 
 # Specify a configuration file.
 [MASTER]
 
 # Specify a configuration file.
@@ -95,7 +95,7 @@ comment=no
 # * undefined variables
 # * redefinition of variable from builtins or from an outer scope
 # * use of variable before assigment
 # * undefined variables
 # * redefinition of variable from builtins or from an outer scope
 # * use of variable before assigment
-# 
+#
 [VARIABLES]
 
 # Tells wether we should check for unused import in __init__ files.
 [VARIABLES]
 
 # Tells wether we should check for unused import in __init__ files.
@@ -118,7 +118,7 @@ additional-builtins=
 # * dangerous default values as arguments
 # * redefinition of function / method / class
 # * uses of the global statement
 # * dangerous default values as arguments
 # * redefinition of function / method / class
 # * uses of the global statement
-# 
+#
 [BASIC]
 
 # Required attributes for module, separated by a comma
 [BASIC]
 
 # Required attributes for module, separated by a comma
@@ -186,7 +186,7 @@ acquired-members=REQUEST,acl_users,aq_parent
 # checks for sign of poor/misdesign:
 # * number of methods, attributes, local variables...
 # * size, complexity of functions, methods
 # checks for sign of poor/misdesign:
 # * number of methods, attributes, local variables...
 # * size, complexity of functions, methods
-# 
+#
 [DESIGN]
 
 # Maximum number of arguments for function / method
 [DESIGN]
 
 # Maximum number of arguments for function / method
@@ -224,7 +224,7 @@ max-public-methods=20
 # * attributes not defined in the __init__ method
 # * supported interfaces implementation
 # * unreachable code
 # * attributes not defined in the __init__ method
 # * supported interfaces implementation
 # * unreachable code
-# 
+#
 [CLASSES]
 
 # List of interface methods to ignore, separated by a comma. This is used for
 [CLASSES]
 
 # List of interface methods to ignore, separated by a comma. This is used for
@@ -240,7 +240,7 @@ defining-attr-methods=__init__,__new__,setUp
 # * relative / wildcard imports
 # * cyclic imports
 # * uses of deprecated modules
 # * relative / wildcard imports
 # * cyclic imports
 # * uses of deprecated modules
-# 
+#
 [IMPORTS]
 
 # Deprecated modules which should not be used, separated by a comma
 [IMPORTS]
 
 # Deprecated modules which should not be used, separated by a comma
@@ -262,7 +262,7 @@ int-import-graph=
 # checks for similarities and duplicated code. This computation may be
 # memory / CPU intensive, so you should disable it if you experiments some
 # problems.
 # checks for similarities and duplicated code. This computation may be
 # memory / CPU intensive, so you should disable it if you experiments some
 # problems.
-# 
+#
 [SIMILARITIES]
 
 # Minimum lines number of a similarity.
 [SIMILARITIES]
 
 # Minimum lines number of a similarity.
@@ -278,7 +278,7 @@ ignore-docstrings=yes
 # checks for:
 # * warning notes in the code like FIXME, XXX
 # * PEP 263: source code with non ascii character but no encoding declaration
 # checks for:
 # * warning notes in the code like FIXME, XXX
 # * PEP 263: source code with non ascii character but no encoding declaration
-# 
+#
 [MISCELLANEOUS]
 
 # List of note tags to take in consideration, separated by a comma.
 [MISCELLANEOUS]
 
 # List of note tags to take in consideration, separated by a comma.
@@ -290,7 +290,7 @@ notes=FIXME,XXX,TODO
 # * strict indentation
 # * line length
 # * use of <> instead of !=
 # * strict indentation
 # * line length
 # * use of <> instead of !=
-# 
+#
 [FORMAT]
 
 # Maximum number of characters on a single line.
 [FORMAT]
 
 # Maximum number of characters on a single line.