Skip to content

Commit ef1d9ef

Browse files
committed
πŸ”§ Add coverage exclude_lines
1 parent 7743425 commit ef1d9ef

File tree

4 files changed

+51
-33
lines changed

4 files changed

+51
-33
lines changed

β€Žfastapi_pagination/bases.pyβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class RawParams:
3535
class AbstractParams(ABC):
3636
@abstractmethod
3737
def to_raw_params(self) -> RawParams:
38-
pass # pragma: no cover
38+
pass
3939

4040

4141
def _create_params(cls: Type[AbstractParams], fields: Dict[str, Any]) -> Mapping[str, Any]:
@@ -57,7 +57,7 @@ class AbstractPage(GenericModel, Generic[T], ABC):
5757
@classmethod
5858
@abstractmethod
5959
def create(cls: Type[C], items: Sequence[T], total: int, params: AbstractParams) -> C:
60-
pass # pragma: no cover
60+
pass
6161

6262
@classmethod
6363
def with_custom_options(cls: Type[TAbstractPage], **kwargs: Any) -> Type[TAbstractPage]:

β€Žpoetry.lockβ€Ž

Lines changed: 41 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpyproject.tomlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pre-commit = "^2.12.1"
4444
Faker = "^8.1.0"
4545
requests = "^2.25.0"
4646
nest-asyncio = "^1.4.3"
47-
psycopg2 = "^2.8.6"
47+
psycopg2-binary = "^2.8.6"
4848
asynctest = "^0.13.0"
4949
mkdocs = "^1.1.2"
5050
mkdocs-material = "^7.1.2"

β€Žsetup.cfgβ€Ž

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,10 @@ warn_no_return = True
2222
warn_redundant_casts = True
2323
warn_unused_ignores = True
2424
disallow_untyped_defs = True
25-
check_untyped_defs = True
25+
check_untyped_defs = True
26+
27+
[coverage:report]
28+
exclude_lines =
29+
pragma: no cover
30+
@abstractmethod
31+
if TYPE_CHECKING:

0 commit comments

Comments
Β (0)