Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5322686

Browse files
authored
Create pyproject.toml
Add pyproject.toml with sections for pyest, mypy, coverage.py
1 parent ef3622f commit 5322686

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

pyproject.toml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
[tool.pytest.ini_options]
2+
python_files = 'test_*.py'
3+
testpaths = 'test' # space seperated list of paths from root e.g test tests doc/testing
4+
addopts = '--cov=git --cov-report=term --maxfail=10 --disable-warnings'
5+
filterwarnings = 'ignore::DeprecationWarning'
6+
# --cov coverage
7+
# --cov-report term # send report to terminal term-missing -> terminal with line numbers html xml
8+
# --cov-report term-missing # to terminal with line numbers
9+
# --cov-report html:path # html file at path
10+
# --maxfail # number of errors before giving up
11+
# -disable-warnings # Disable pytest warnings (not codebase warnings)
12+
# -rf # increased reporting of failures
13+
# -rE # increased reporting of errors
14+
# --ignore-glob=**/gitdb/* # ignore glob paths
15+
# filterwarnings ignore::WarningType # ignores those warnings
16+
17+
[tool.mypy]
18+
# disallow_untyped_defs = True
19+
no_implicit_optional = true
20+
warn_redundant_casts = true
21+
# warn_unused_ignores = True
22+
# warn_unreachable = True
23+
show_error_codes = true
24+
25+
# TODO: remove when 'gitdb' is fully annotated
26+
[[tool.mypy.overrides]]
27+
module = "gitdb.*"
28+
ignore_missing_imports = true
29+
30+
[tool.coverage.run]
31+
source = ["git"]
32+
33+
[tool.coverage.report]
34+
include = ["*/git/*"]
35+
omit = ["*/git/ext/*"]

0 commit comments

Comments
 (0)