diff options
-rw-r--r-- | tox.ini | 28 |
1 files changed, 26 insertions, 2 deletions
@@ -12,7 +12,7 @@ commands = coverage run --omit="git/test/*" -m unittest --buffer {posargs} coverage report [testenv:flake8] -commands = flake8 --ignore=W293,E265,E266,W503,W504,E731 {posargs} +commands = flake8 --ignore=W293,E265,E266,W503,W504,E704,E731 {posargs} [testenv:type] description = type check ourselves @@ -32,6 +32,30 @@ commands = {posargs} # E731 = do not assign a lambda expression, use a def # W293 = Blank line contains whitespace # W504 = Line break after operator -ignore = E265,W293,E266,E731, W504 +# E707 = multiple statements in one line - used for @overloads +ignore = E265,W293,E266,E731,E704, W504 max-line-length = 120 exclude = .tox,.venv,build,dist,doc,git/ext/ + +[pytest] +python_files = + test_*.py + +# space seperated list of paths from root e.g test tests doc/testing +testpaths = test + +# --cov coverage +# --cov-report term # send report to terminal term-missing -> terminal with line numbers html xml +# --cov-report term-missing # to terminal with line numbers +# --cov-report html:path # html file at path +# --maxfail # number of errors before giving up +# -disable-warnings # Disable pytest warnings (not codebase warnings) +#-rf # increased reporting of failures +# -rE # increased reporting of errors +# --ignore-glob=**/gitdb/* # ignore glob paths +addopts = --cov=git --cov-report=term --maxfail=50 -rf --verbosity=0 --disable-warnings + +# ignore::WarningType # ignores those warnings +# error # turn any unignored warning into errors +filterwarnings = + ignore::DeprecationWarning |