Skip to content

Commit

Permalink
Excluded something
Browse files Browse the repository at this point in the history
  • Loading branch information
xfenix committed Sep 26, 2023
1 parent 18941b0 commit 61bd4ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ exclude = ["whole_app/settings.py"]
[tool.pytest.ini_options]
addopts = "--cov . --cov-report term-missing"

[tool.coverage.report]
exclude_also = [
"if typing.TYPE_CHECKING",
]

[tool.coverage.run]
omit = ["scripts/*"]

Expand Down
3 changes: 1 addition & 2 deletions tests/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
import os
import runpy
import typing
from typing import TYPE_CHECKING

from fastapi.testclient import TestClient

from whole_app import views
from whole_app.settings import SETTINGS, SettingsOfMicroservice


if TYPE_CHECKING:
if typing.TYPE_CHECKING:
import faker


Expand Down

0 comments on commit 61bd4ee

Please sign in to comment.