From 9692c6155b7e4302c9778cb8ff2f917758aefe5e Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Tue, 6 Dec 2022 18:23:27 +0100 Subject: fix lints --- fietsboek/config.py | 4 ++-- fietsboek/email.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fietsboek/config.py b/fietsboek/config.py index e90deda..d2efe77 100644 --- a/fietsboek/config.py +++ b/fietsboek/config.py @@ -153,7 +153,7 @@ class Config(BaseModel): email_username: str = Field("", alias="email.username") """SMTP username (optional).""" - email_password: SecretStr = Field("", alias="email.password") + email_password: SecretStr = Field(SecretStr(""), alias="email.password") """SMTP password (optional).""" pages: PyramidList = Field([], alias="fietsboek.pages") @@ -166,7 +166,7 @@ class Config(BaseModel): By default, that's all of them. """ - thunderforest_key: SecretStr = Field("", alias="thunderforest.api_key") + thunderforest_key: SecretStr = Field(SecretStr(""), alias="thunderforest.api_key") """API key for the Thunderforest integration.""" thunderforest_maps: PyramidList = Field([], alias="thunderforest.maps") diff --git a/fietsboek/email.py b/fietsboek/email.py index 497debe..1ebb740 100644 --- a/fietsboek/email.py +++ b/fietsboek/email.py @@ -1,6 +1,5 @@ """Utility functions for email sending.""" import logging -import re import smtplib import sys -- cgit v1.2.3