summaryrefslogtreecommitdiff
path: root/tasks.py
Commit message (Collapse)AuthorAgeFilesLines
* Use latest version of mypy and fix type hinting accordingly (#1239)Todd Leonhardt2022-07-141-0/+11
| | | | | | | | | | | | * Use latest version of mypy and fix type hinting accordingly Also: - Update Pipfile to never require mock since we only support Python 3.6+ - Remove Azure Pipelines badge from Readme and fix section links there - Added an "inv format" task to run black and isort to auto-format all code before a commit * Try to fix type errors on versions prior to 3.8 * Restored correct types in argparse_custom.py
* Excluding more temporary directories from the manifest. Added plugins back ↵Eric Lin2021-06-171-1/+1
| | | | in to enable isolated tests
* Add in isort changesTodd Leonhardt2021-01-311-1/+3
|
* Add black for automatic code formatTodd Leonhardt2021-01-311-9/+6
|
* Changed isort to force wrapping of imports to reduce merge conflicts from ↵Eric Lin2021-01-221-2/+4
| | | | minor import changes.
* Verify that a completer function is defined in a CommandSet beforeEric Lin2020-08-061-2/+2
| | | | | | | | | | passing it a CommandSet instance. Search for a CommandSet instance that matches the completer's parent class type.` Resolves Issue #967 Renamed isolated_tests directory to tests_isolated for better visual grouping. Added some exception documentation
* Removed remaining usages and examples with tox. Updated references to tox to ↵Eric Lin2020-08-041-22/+1
| | | | reference to nox instead.
* updated importsEric Lin2020-08-041-10/+17
| | | | Added additional documentation
* Moved commandset tests into an isolated testEric Lin2020-08-041-2/+9
|
* Ran isortTodd Leonhardt2020-07-111-2/+2
|
* external test plugin tests and coverage should now runEric Lin2020-07-111-5/+6
|
* Copied cmd2 ext test into cmd2 baseline and linked up invokeEric Lin2020-07-111-15/+16
|
* Swap out tox for noxEric Lin2020-07-081-78/+187
|
* Added info on semantic versioning and branching strategy to CONTRIBUTING.mdTodd Leonhardt2020-04-241-0/+1
| | | | | | | Also: - Added isort to Pipenv dev - Added setup.cfg to make it easy to run flake8, doc8, and isort directly from the command line without using invoke - Ran isort to sort includes
* Fixed broken links in Sphinx docsTodd Leonhardt2020-01-261-2/+8
| | | | | | Also: - Added a "linkcheck" task to the invoke tasks _ Use pseudoterminals for invoke tasks with colored output so that we can see the color when using invoke
* Reduced complexity of complete()Kevin Van Brunt2019-07-171-1/+1
|
* Merge branch 'master' into docstructureTodd Leonhardt2019-07-061-1/+1
|\ | | | | | | | | # Conflicts: # setup.py
| * Updated flake8 invoke task to exclude unecessary directories to prevent it ↵Todd Leonhardt2019-07-061-1/+1
| | | | | | | | taking a long time when using a venv
* | Fix incorrect path in doc8 taskkotfu2019-07-061-1/+1
| |
* | Add doc8 documentation style checkingkotfu2019-07-061-1/+7
|/ | | | | | - add dev dependency - add doc8 to tasks.py - fix all doc8 errors
* Fixed flake errorsKevin Van Brunt2019-05-081-1/+1
|
* 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