summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorDominic <yobmod@gmail.com>2021-07-12 22:16:14 +0100
committerGitHub <noreply@github.com>2021-07-12 22:16:14 +0100
commit89d7611d39991d96a8c44121a3ea82d10b611446 (patch)
tree3ef8a024eb4413884fa2e5c3633a7d66f594ef7c /tox.ini
parent4f9ef1f80c20dc913f707e079847c787a30b7313 (diff)
downloadgitpython-89d7611d39991d96a8c44121a3ea82d10b611446.tar.gz
Update tox.ini
Ignore flake8 E704 (Multiple statements on one line) too make overloads smaller Add [pytest] config section
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini28
1 files changed, 26 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index e3dd84b6..7231f045 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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