15 Commits

Author SHA1 Message Date
Foo
e097f656c3 Fix main arguments parser tests 2015-05-10 22:23:19 +03:00
ZyX
c6bf5fb512 Add support for Byron Rakitzis’ rc shell reimplementation
Fixes #1238
2015-01-08 03:32:13 +03:00
ZyX
917dfed842 Take overrides from environment variables
Ref #1201
2015-01-07 01:09:53 +03:00
ZyX
45ccbee171 Use singular --*-override form for command-line overrides
Ref #1126
2015-01-07 01:09:52 +03:00
ZyX
09afbc4655 Replace underscores with dashes in long options
Fixes #1125
2015-01-06 16:29:54 +03:00
ZyX
fadd1eec17 Move all parser definitions to powerline.commands.*.get_argparser()
Reasoning: they will be easier to reach there. It will also be possible to use
specific ArgumentParser class that will just collect data for sphinx.
2014-10-25 22:03:33 +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
4a8b81e68b Rearrange renderers: move *_prompt modules one level up
Renames powerline.renderers.zsh_prompt to powerline.renderers.shell.zsh, same
for other *sh_prompt modules.
2014-08-15 19:27:10 +04:00
ZyX
0f4e1bafda Refactor config_mock module to not use globals and fix tests 2014-08-05 13:56:02 +04:00
ZyX
3d1f9bfbbd Allow multiple arguments to powerline[-lint] --config_path 2014-08-03 22:22:59 +04:00
ZyX
be2fe98a21 Add support for omitting VALUE
This will remove error reported in #853, but not its cause
2014-05-04 13:01:29 +04:00
ZyX
c3b4654bfb Fix flake8 complaints 2014-03-13 20:41:54 +04:00
ZyX
58d5d6b078 Remove failing test 2014-02-16 21:22:05 +04:00
ZyX
ac9703e04c Also check for jobnum 2014-01-17 20:54:47 +04:00
ZyX
a71c49d96b Add tests 2014-01-17 20:51:38 +04:00