summaryrefslogtreecommitdiff
path: root/tasks.py
Commit message (Collapse)AuthorAgeFilesLines
* Added flake8 invoke task to make it easy for developers to run flake8 ↵Todd Leonhardt2018-12-061-0/+8
| | | | locally identical to how it gets run during a PR
* Fix flake8 issuesTodd Leonhardt2018-12-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | 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
* Make name a required argument for the "invoke tag" commandTodd Leonhardt2018-10-141-1/+1
| | | | | | | | | | This causes the "invoke tag" command to function in an intuitive fashion as so: invoke tag tag_name Previously when name was an optional argument, the name needed to be set using a flag like so: invoke tag -n tag_name This has the side benefit of now making the recommended usage in the Contributor's Guide correct.
* Added regex to validatetag invoke task to check to make sure Git Tag appears ↵Todd Leonhardt2018-08-271-2/+16
| | | | to be a version number
* Added a validatetag invoke task to check to make sure a Git tag exists for ↵Todd Leonhardt2018-08-241-2/+9
| | | | | | | | the current HEAD Also: - The pypi and pypi-test invoke tasks now have the validatetag task as their first prerequisite - So attempting to publish to pypi without a Git tag will fail
* Added a tag invoke task for adding a Git tag and pushing it to originTodd Leonhardt2018-08-241-0/+9
|
* Removed non-working Module Index link from the main Sphinx docs pageTodd Leonhardt2018-07-311-1/+2
| | | | | | | | | Also: * Improved Sphinx build options in Makefile and via invoke by adding the following options: * -n : nit-picky mode, warn about all missing references * -v : increase verbosity (can be repeated) * -W : turn warnings into errors * -T : show full traceback on exception
* "invoke clean" will now also cleanup mypy daemon artifactsTodd Leonhardt2018-06-251-2/+1
|
* Added invoke commands for running mypy and cleaning up after itTodd Leonhardt2018-06-101-0/+15
|
* Removed apparently dead code from argcomplete_bridge.pyTodd Leonhardt2018-06-091-1/+1
| | | | | | 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
* Added minimum version of twine to dev tool requirements in setup.pyTodd Leonhardt2018-05-301-1/+6
| | | | | Also: - Updated comment in tasks.py to document minimum version of twine, wheel, and setuptools required
* More updates for #408 and #399kotfu2018-05-281-25/+19
|
* Work begins on #408 and #399kotfu2018-05-281-0/+184