<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/cmd2-git.git/cmd2/argcomplete_bridge.py, branch 0.9.9</title>
<subtitle>github.com: python-cmd2/cmd2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/'/>
<entry>
<title>Fix flake8 issues</title>
<updated>2018-12-06T06:24:19+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2018-12-06T06:24:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=c689e74fed45bf1a7b2908defc343d35f31dff71'/>
<id>c689e74fed45bf1a7b2908defc343d35f31dff71</id>
<content type='text'>
This commit contains a very large number of trivial changes in order to fix flake8 errors and warnings.  Predominantly these are whitespace changes.

Additionally, the build for Python 3.7 on TravisCI has been tweaked to fail if there are any flake8 errors using the following commandline:
* flake8 . --count --ignore=E252 --max-complexity=31 --max-line-length=127 --show-source --statistics
NOTE: In the future the max cyclomatic complexity should be lowered, but some improvements need to be made first.

One flake8 error is being ignored entirely:
* E252 missing whitespace around parameter equals
    * ignored because it doesn't correctly deal with default argument values after a type hint

A few flake8 errors are being selectively ignored in certain files:
* C901 fuction is too complex
    * ignored in argparse_completer.py because the complex code is an override of argparse complexity
* E302 expected 2 blank lines after ...
    * ignored in all unit test files for convenience
* F401 module imported but unused
    * ignored in cmd2/__init__.py because imports are for convenience of cmd2 developers and backwards compatibility
* F821 undefined name
    * ignored in cmd2 script files which are intended to run only within cmd2 applications via pyscript where "app" and "cmd" are defined
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit contains a very large number of trivial changes in order to fix flake8 errors and warnings.  Predominantly these are whitespace changes.

Additionally, the build for Python 3.7 on TravisCI has been tweaked to fail if there are any flake8 errors using the following commandline:
* flake8 . --count --ignore=E252 --max-complexity=31 --max-line-length=127 --show-source --statistics
NOTE: In the future the max cyclomatic complexity should be lowered, but some improvements need to be made first.

One flake8 error is being ignored entirely:
* E252 missing whitespace around parameter equals
    * ignored because it doesn't correctly deal with default argument values after a type hint

A few flake8 errors are being selectively ignored in certain files:
* C901 fuction is too complex
    * ignored in argparse_completer.py because the complex code is an override of argparse complexity
* E302 expected 2 blank lines after ...
    * ignored in all unit test files for convenience
* F401 module imported but unused
    * ignored in cmd2/__init__.py because imports are for convenience of cmd2 developers and backwards compatibility
* F821 undefined name
    * ignored in cmd2 script files which are intended to run only within cmd2 applications via pyscript where "app" and "cmd" are defined
</pre>
</div>
</content>
</entry>
<entry>
<title>Removed remaining type hints in docstrings</title>
<updated>2018-09-21T14:08:05+00:00</updated>
<author>
<name>Kevin Van Brunt</name>
<email>kmvanbrunt@gmail.com</email>
</author>
<published>2018-09-21T14:08:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=0817978fcd67bc8e84369d163aff55c1a614b711'/>
<id>0817978fcd67bc8e84369d163aff55c1a614b711</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Added back bash_complete() helper function to argcomplete_bridge.py</title>
<updated>2018-06-09T23:01:41+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2018-06-09T23:01:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=6c2b3193b1d99aaa183fdde8f9bcf5288522d854'/>
<id>6c2b3193b1d99aaa183fdde8f9bcf5288522d854</id>
<content type='text'>
This is intended to be used once a new example is added to show how to use the code present in argcomplete_bridge.

This was previously used by the subcommands.py example, but I deleted the argcomplete_bridge code from there to simplify that example and make it focused on subcommands.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is intended to be used once a new example is added to show how to use the code present in argcomplete_bridge.

This was previously used by the subcommands.py example, but I deleted the argcomplete_bridge code from there to simplify that example and make it focused on subcommands.
</pre>
</div>
</content>
</entry>
<entry>
<title>Removed apparently dead code from argcomplete_bridge.py</title>
<updated>2018-06-09T21:10:23+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2018-06-09T21:10:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=19a1f764119aa1c4e391c06b18c0f101ef20a7ce'/>
<id>19a1f764119aa1c4e391c06b18c0f101ef20a7ce</id>
<content type='text'>
Also:
- Made some minor formatting changes in argcomplete_bridge.py to make PyCharm happy
- Fixed typo where "invoke clean" was cleaning up .pytest-cache instead of .pytest_cache
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also:
- Made some minor formatting changes in argcomplete_bridge.py to make PyCharm happy
- Fixed typo where "invoke clean" was cleaning up .pytest-cache instead of .pytest_cache
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixes problem with not passing the parameter hint suppression down to sub-commands</title>
<updated>2018-05-22T19:07:14+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2018-05-22T19:07:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=3d953628f1dbf7119001fa0751086b3b6016f764'/>
<id>3d953628f1dbf7119001fa0751086b3b6016f764</id>
<content type='text'>
Added hint suppression on a per-parameter basis
Added helper function to force an parameter to fall back to bash completion instead of using Cmd2 completion.
  - Hinting is still enabled by default but can be suppressed in the helper function.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Added hint suppression on a per-parameter basis
Added helper function to force an parameter to fall back to bash completion instead of using Cmd2 completion.
  - Hinting is still enabled by default but can be suppressed in the helper function.
</pre>
</div>
</content>
</entry>
<entry>
<title>Bug fixes due to API differences in older versions of argcomplete</title>
<updated>2018-05-19T21:27:44+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2018-05-19T21:27:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=34c7e650145c21499f3cc7667b71bb44c65fab01'/>
<id>34c7e650145c21499f3cc7667b71bb44c65fab01</id>
<content type='text'>
NOTES:
- I didn't implement this correctly because I don't know how to programmatically determine the version of argcomplete; instead I based it on the version of Python
- We should make sure this works correctly even if no version of argcomplete is installed
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
NOTES:
- I didn't implement this correctly because I don't know how to programmatically determine the version of argcomplete; instead I based it on the version of Python
- We should make sure this works correctly even if no version of argcomplete is installed
</pre>
</div>
</content>
</entry>
<entry>
<title>Added argcomplete to unit test environment. Added exclusion for Windows</title>
<updated>2018-05-04T18:14:15+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2018-05-04T18:14:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=efc6ab8e9604aa321168f62c98c7470138621399'/>
<id>efc6ab8e9604aa321168f62c98c7470138621399</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Adds some semblance of testing for bash completion. Tests the completion logic in the argcomplete function but doesn't test actual completion in bash.</title>
<updated>2018-05-04T18:03:54+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2018-05-04T18:03:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=6efe7217a58ff1bfe54bea79a7aa35f08a114b5f'/>
<id>6efe7217a58ff1bfe54bea79a7aa35f08a114b5f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Figured out how to detect the second tab press. Writing parameter hinting to stderr to bypass bash completion handling.</title>
<updated>2018-05-03T21:00:01+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2018-05-03T21:00:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=94156f8a78b74588275141d27c0b633455fa4fc0'/>
<id>94156f8a78b74588275141d27c0b633455fa4fc0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Addressed comments.</title>
<updated>2018-05-02T18:13:12+00:00</updated>
<author>
<name>Eric Lin</name>
<email>anselor@gmail.com</email>
</author>
<published>2018-05-02T18:13:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=148f05d0af66f38c8ba6ca3a5619f50a8bb1b8a9'/>
<id>148f05d0af66f38c8ba6ca3a5619f50a8bb1b8a9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
