summaryrefslogtreecommitdiff
path: root/pyproject.toml
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2021-07-19 23:25:48 +0800
committerGitHub <noreply@github.com>2021-07-19 23:25:48 +0800
commitacbd6bad9ded9a1d59e80e71d334d64b0244f5cd (patch)
treec7e162bb6962be9f33b9f7edb84da1b7511fe0d7 /pyproject.toml
parent06c219929a427737b43c5dfd5359019f2c110d41 (diff)
parentf587b21a98e7c26986db87d991af42cafcfebb07 (diff)
downloadgitpython-acbd6bad9ded9a1d59e80e71d334d64b0244f5cd.tar.gz
Merge pull request #1294 from gitpython-developers/tidy-tools
Tidy tools
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml35
1 files changed, 35 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 00000000..79e62840
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,35 @@
+[tool.pytest.ini_options]
+python_files = 'test_*.py'
+testpaths = 'test' # space seperated list of paths from root e.g test tests doc/testing
+addopts = '--cov=git --cov-report=term --maxfail=10 --force-sugar --disable-warnings'
+filterwarnings = 'ignore::DeprecationWarning'
+# --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
+# filterwarnings ignore::WarningType # ignores those warnings
+
+[tool.mypy]
+# disallow_untyped_defs = True
+no_implicit_optional = true
+warn_redundant_casts = true
+# warn_unused_ignores = True
+# warn_unreachable = True
+show_error_codes = true
+
+# TODO: remove when 'gitdb' is fully annotated
+[[tool.mypy.overrides]]
+module = "gitdb.*"
+ignore_missing_imports = true
+
+[tool.coverage.run]
+source = ["git"]
+
+[tool.coverage.report]
+include = ["*/git/*"]
+omit = ["*/git/ext/*"]