<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/cmd2-git.git/tests/test_plugin.py, branch 0.9.12</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>Deleted the hook methods which were deprecated in the previous release</title>
<updated>2018-09-25T04:10:13+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2018-09-25T04:10:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=67aa13c732b331e700c8bd16c77fabfe6c90c75c'/>
<id>67aa13c732b331e700c8bd16c77fabfe6c90c75c</id>
<content type='text'>
The following methods of cmd2.Cmd have been deleted:
- preparse
- postparsing_precmd
- postparsing_postcmd

The new application lifecycle hook framework allows for registering callbacks to be called at various points in the application lifecycle and is more powerful and flexible than the old system of fixed hook methods.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The following methods of cmd2.Cmd have been deleted:
- preparse
- postparsing_precmd
- postparsing_postcmd

The new application lifecycle hook framework allows for registering callbacks to be called at various points in the application lifecycle and is more powerful and flexible than the old system of fixed hook methods.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed several hack classes build to simulate file descriptors</title>
<updated>2018-09-23T22:51:30+00:00</updated>
<author>
<name>Todd Leonhardt</name>
<email>todd.leonhardt@gmail.com</email>
</author>
<published>2018-09-23T22:51:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=35550e048bde73b08fad28c2a8d844dcbdea7f35'/>
<id>35550e048bde73b08fad28c2a8d844dcbdea7f35</id>
<content type='text'>
Now there is a single class, StdSim in utils.py, which is intended to simulate stdout and stderr file objects.

This class replaced the following:
- pyscript_bridge.py::CopyStream
- transcript.py::OutputTrap
- conftest.py::StdOut
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now there is a single class, StdSim in utils.py, which is intended to simulate stdout and stderr file objects.

This class replaced the following:
- pyscript_bridge.py::CopyStream
- transcript.py::OutputTrap
- conftest.py::StdOut
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix for #417, call preparse()</title>
<updated>2018-07-15T21:50:13+00:00</updated>
<author>
<name>kotfu</name>
<email>kotfu@kotfu.net</email>
</author>
<published>2018-07-15T21:50:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=8e930af452c4a7f50aa4fafb1bab4201337a4ded'/>
<id>8e930af452c4a7f50aa4fafb1bab4201337a4ded</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add command finalization hooks</title>
<updated>2018-07-05T17:28:20+00:00</updated>
<author>
<name>kotfu</name>
<email>kotfu@kotfu.net</email>
</author>
<published>2018-07-05T17:28:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=985e790c594a2c48804ffa201f9253eb32a59c8b'/>
<id>985e790c594a2c48804ffa201f9253eb32a59c8b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Postcommand hooks implemented</title>
<updated>2018-06-22T22:26:59+00:00</updated>
<author>
<name>kotfu</name>
<email>kotfu@kotfu.net</email>
</author>
<published>2018-06-22T22:26:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=a73c061b82ac1824db8e1747698c90c0ae7766b1'/>
<id>a73c061b82ac1824db8e1747698c90c0ae7766b1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Revise precommand hooks to use `data` parameter</title>
<updated>2018-06-21T21:13:52+00:00</updated>
<author>
<name>kotfu</name>
<email>kotfu@kotfu.net</email>
</author>
<published>2018-06-21T21:13:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=1cd46fd53c698f062995c2c45db57c07285a6f46'/>
<id>1cd46fd53c698f062995c2c45db57c07285a6f46</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use `data` instead of `params`</title>
<updated>2018-06-21T21:09:31+00:00</updated>
<author>
<name>kotfu</name>
<email>kotfu@kotfu.net</email>
</author>
<published>2018-06-21T21:09:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=c9ea3a749f7febb6dfe0f36001457e3907524ee7'/>
<id>c9ea3a749f7febb6dfe0f36001457e3907524ee7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Revised postparsing hooks</title>
<updated>2018-06-21T21:04:16+00:00</updated>
<author>
<name>kotfu</name>
<email>kotfu@kotfu.net</email>
</author>
<published>2018-06-21T21:04:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=7298501357504312e137180c99c05a40f49eb48a'/>
<id>7298501357504312e137180c99c05a40f49eb48a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>add comment headers to better organize code</title>
<updated>2018-06-04T05:27:06+00:00</updated>
<author>
<name>kotfu</name>
<email>kotfu@kotfu.net</email>
</author>
<published>2018-06-04T05:27:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cmd2-git.git/commit/?id=61523bff1b6fb5c1f74bae12de3a7d297aaf92cc'/>
<id>61523bff1b6fb5c1f74bae12de3a7d297aaf92cc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
