Skip to content

Commit

Permalink
add subprocess code coverage, remove pass/fail coverage requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
bckohan committed Jan 27, 2024
1 parent 5f246fd commit 7e8669b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions django_typer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
"""

try:
# todo - this monkey patch is required because typer does
# not expose a good way to custom configure the Console objects
# it uses.
from typer import rich_utils
console_getter = rich_utils._get_rich_console
def get_console():
Expand Down
11 changes: 8 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,19 @@ addopts = [
"--strict-markers",
"--cov=django_typer",
"--cov-branch",
"--cov-report=term-missing:skip-covered",
"--cov-fail-under=90"
"--cov-report=term-missing:skip-covered"
]

[tool.coverage.run]
omit = [
"django_typer/tests/**/*py"
]
branch = true
source = ["django_typer"]
concurrency = ["multiprocessing"]
parallel = true
command_line = "-m pytest --cov=django_typer"


[tool.black]
line-length = 88
Expand All @@ -144,6 +149,6 @@ ignore="tests"

[tool.pylint.'MESSAGES CONTROL']
disable = [
'R0903', # to few public methods - seriously?
'R0903', # too few public methods - seriously?
'W0613', # unused argument - unavoidable in generic base interfaces
]

0 comments on commit 7e8669b

Please sign in to comment.