Changeset 866
- Timestamp:
- 04/27/06 03:16:43 (3 years ago)
- Files:
-
- trunk/gaphas/README.txt (modified) (1 diff)
- trunk/gaphas/pylintrc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/gaphas/README.txt
r863 r866 155 155 Simple example classes. 156 156 157 Guidelines 158 ---------- 159 Following the Python coding guidelines 160 <http://www.python.org/dev/peps/pep-0008/> indentation should be 4 spaces 161 (no tabs), function and method names should be lowercase_with_underscore(), 162 and files should contain a __version__ property, like this: 157 163 164 __version__ = "$Revision$" 165 # $HeadURL$ 166 167 It should be placed after the module docstring. 168 169 This inhibits that for each .py file, the svn:keywords property should be set 170 to "Revision HeadURL". This can be done manually: 171 172 $ svn propset svn:keywords "Revision HeadURL" myfile.py 173 174 or by configuring your ~/.subversion/config file to use auto-props: 175 176 [miscellany] 177 # ... 178 enable-auto-props = yes 179 180 [auto-props] 181 # ... 182 *.py = svn:keywords=Revision HeadURL 183 184 trunk/gaphas/pylintrc
r864 r866 88 88 89 89 # Required attributes for module, separated by a comma 90 required-attributes= 91 #required-attributes=__revision__ 90 required-attributes=__version__ 92 91 93 92 # Regular expression which should only match functions or classes name which do
