From a90e69a0157ea57dfcac2fdb649dc3ab95c43dce Mon Sep 17 00:00:00 2001 From: tarsil Date: Tue, 12 Dec 2023 16:53:19 +0000 Subject: [PATCH] Fix linting --- lilya/compat.py | 6 ++++-- pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lilya/compat.py b/lilya/compat.py index 871a310..718bc90 100644 --- a/lilya/compat.py +++ b/lilya/compat.py @@ -13,10 +13,12 @@ # check if the Python version supports the parameter # using usedforsecurity=False to avoid an exception on FIPS systems # that reject usedforsecurity=True - hashlib.md5(b"data", usedforsecurity=False) + hashlib.md5(b"data", usedforsecurity=False) # type: ignore[call-arg] def md5_hexdigest(data: bytes, *, usedforsecurity: bool = True) -> str: # pragma: no cover - return hashlib.md5(data, usedforsecurity=usedforsecurity).hexdigest() + return hashlib.md5( # type: ignore[call-arg] + data, usedforsecurity=usedforsecurity + ).hexdigest() except TypeError: # pragma: no cover diff --git a/pyproject.toml b/pyproject.toml index 0e1b2f8..4534dcd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -101,7 +101,7 @@ warn_redundant_casts = true no_implicit_optional = false strict_equality = false strict_optional = false - +exclude = ["lilya/compat.py"] [tool.ruff] select = [