1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
[tool:pytest]
testpaths =
tests
addopts =
--cov=cmd2
--cov-append
--cov-report=term
--cov-report=html
[flake8]
count = True
ignore = E203,E231,W503 # E231 can be removed once black is fixed.
max-complexity = 26
max-line-length = 127
show-source = True
statistics = True
exclude =
.git
__pycache__
.tox
.nox
.eggs
*.eggs,
.venv,
.idea,
.pytest_cache,
.vscode,
build,
dist,
htmlcov
[isort]
line_length = 1
skip = cmd2/__init__.py,.git,__pycache,.tox,.nox,.venv,.eggs,.idea,.vscode,build,dist.htmlcov
profile = black
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
[doc8]
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
[egg_info]
tag_build =
tag_date = 0
|