Commit Graph

7 Commits

Author SHA1 Message Date
ZyX db5d87f9e3 Update various URLs: powerline has moved to github.com/powerline 2014-12-07 16:08:24 +03:00
ZyX d76bf5ef79 Fix example in CONTRIBUTING.rst 2014-09-17 00:05:10 +04:00
ZyX 06211cbe63 Unify imports
Now imports follow the following structure:

1. __future__ line: exactly one line allowed:

        from __future__ import (unicode_literals, division, absolute_import, print_function)

   (powerline.shell is the only exception due to problems with argparse).
2. Standard python library imports in a form `import X`.
3. Standard python library imports in a form `from X import Y`.
4. and 5. 2. and 3. for third-party (non-python and non-powerline imports).
6. 3. for powerline non-test imports.
7. and 8. 2. and 3. for powerline testing module imports.

Each list entry is separated by exactly one newline from another import. If
there is module docstring it goes between `# vim:` comment and `__future__`
import. So the structure containing all items is the following:

    #!/usr/bin/env python
    # vim:fileencoding=utf-8:noet

    '''Powerline super module'''

    import sys

    from argparse import ArgumentParser

    import psutil

    from colormath.color_diff import delta_e_cie2000

    from powerline.lib.unicode import u

    import tests.vim as vim_module

    from tests import TestCase

.
2014-09-01 00:25:24 +04:00
ZyX cbfa64c7cb Mention long lines in CONTRIBUTING.rst 2014-08-15 20:06:40 +04:00
ZyX fa93d0a929 Ignore E101 (“indentation contains mixed spaces and tabs”) 2014-08-15 20:04:12 +04:00
ZyX 2f3d56887f Drop unneeded ignores 2014-08-15 20:02:28 +04:00
Kim Silkebækken edfc090ddb Add initial CONTRIBUTING document
Based on
https://github.com/puppetlabs/puppet/blob/master/CONTRIBUTING.md

Ref #287
2013-03-15 15:23:41 +01:00