summaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2021-03-15 15:14:46 -0400
committeranselor <anselor@gmail.com>2021-03-18 18:26:20 -0400
commitf30627d5d2d0adc7db45aa26956372ea2cb3dc19 (patch)
tree83c877630653ae3d0075667ec5f2e4e0732a45e5 /setup.cfg
parent486734e85988d0d0160147b0b44a37759c833e8a (diff)
downloadcmd2-git-f30627d5d2d0adc7db45aa26956372ea2cb3dc19.tar.gz
Added tests
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg18
1 files changed, 18 insertions, 0 deletions
diff --git a/setup.cfg b/setup.cfg
index b405af4e..d2ca017b 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,6 +1,11 @@
[tool:pytest]
testpaths =
tests
+addopts =
+ --cov=cmd2
+ --cov-append
+ --cov-report=term
+ --cov-report=html
[flake8]
count = True
@@ -37,3 +42,16 @@ use_parentheses = true
ignore-path=docs/_build,.git,.idea,.pytest_cache,.tox,.nox,.venv,.vscode,build,cmd2,examples,tests,cmd2.egg-info,dist,htmlcov,__pycache__,*.egg,plugins
max-line-length=120
verbose=0
+
+[mypy]
+disallow_incomplete_defs = True
+disallow_untyped_defs = True
+disallow_untyped_calls = True
+warn_redundant_casts = True
+warn_unused_ignores = False
+warn_return_any = True
+warn_unreachable = True
+strict = True
+show_error_context = True
+show_column_numbers = True
+show_error_codes = True