From 4c3f0e6b566590c0e65ded0ca018beb604110118 Mon Sep 17 00:00:00 2001 From: osoken Date: Fri, 23 Feb 2024 15:06:29 +0900 Subject: [PATCH 1/2] fix(pyproject): add ignore DeprecationWarning caused by the base libraries --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 150b2bb..9d38cd8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,6 +71,7 @@ addopts = ["-sv", "--doctest-modules", "--cov=birdxplorer", "--cov-report=xml", testpaths = ["tests", "birdxplorer"] filterwarnings = [ "error", + "ignore:The \\'app\\' shortcut is now deprecated. Use the explicit style \\'transport=WSGITransport\\(app=\\.\\.\\.\\)\\' instead\\.", ] [tool.black] From faa7f9a2b53c786451334c63169a475c4cca5451 Mon Sep 17 00:00:00 2001 From: osoken Date: Fri, 23 Feb 2024 15:11:38 +0900 Subject: [PATCH 2/2] fix(pyproject): add E701 to flake8 ignore list --- birdxplorer/models.py | 3 +-- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/birdxplorer/models.py b/birdxplorer/models.py index 9fce8b8..3dbc6b9 100644 --- a/birdxplorer/models.py +++ b/birdxplorer/models.py @@ -449,8 +449,7 @@ class Message(BaseModel): message: str -class ParticipantId(UpperCased64DigitsHexadecimalString): - ... +class ParticipantId(UpperCased64DigitsHexadecimalString): ... class EnrollmentState(str, Enum): diff --git a/pyproject.toml b/pyproject.toml index 9d38cd8..209cf02 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -80,7 +80,7 @@ target-version = ['py310'] [tool.flake8] max-line-length = 120 -extend-ignore = "E203" +extend-ignore = "E203,E701" [tool.mypy] python_version = "3.10"