From 7c9d263a5577408f7562fe7cdc007ae9180ecfee Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Wed, 7 Aug 2024 17:45:39 +0100 Subject: [PATCH] ci: fix linting errors running pre-commit hooks --- osm_login_python/__init__.py | 6 ++++++ tests/__init__.py | 1 + tests/test_app.py | 1 + 3 files changed, 8 insertions(+) diff --git a/osm_login_python/__init__.py b/osm_login_python/__init__.py index 8afccae..bf44c3b 100644 --- a/osm_login_python/__init__.py +++ b/osm_login_python/__init__.py @@ -1,9 +1,15 @@ +"""Models to return validated JSON.""" + from pydantic import BaseModel class Login(BaseModel): + """Model to return the login url.""" + login_url: str class Token(BaseModel): + """Model to return the access token.""" + access_token: str diff --git a/tests/__init__.py b/tests/__init__.py index e69de29..a17bbe5 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -0,0 +1 @@ +"""Test for the package.""" diff --git a/tests/test_app.py b/tests/test_app.py index e69de29..2e37549 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -0,0 +1 @@ +"""Test the main module logic."""