aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2022-12-06 18:23:27 +0100
committerDaniel Schadt <kingdread@gmx.de>2022-12-06 18:23:27 +0100
commit9692c6155b7e4302c9778cb8ff2f917758aefe5e (patch)
tree76488cdb47a4abb6fd1a36b3c2e0c0d91705bcc9
parent35b5a3359f424b65ba447f1b2714d5ad4f16a4e5 (diff)
downloadfietsboek-9692c6155b7e4302c9778cb8ff2f917758aefe5e.tar.gz
fietsboek-9692c6155b7e4302c9778cb8ff2f917758aefe5e.tar.bz2
fietsboek-9692c6155b7e4302c9778cb8ff2f917758aefe5e.zip
fix lints
-rw-r--r--fietsboek/config.py4
-rw-r--r--fietsboek/email.py1
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