From 34fe64049b8d03e0742692849ab0d18888b79f4d Mon Sep 17 00:00:00 2001 From: coolneng Date: Sat, 31 Oct 2020 14:21:00 +0100 Subject: [PATCH] Sort all imports --- shell.nix | 3 ++- src/notifier.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/shell.nix b/shell.nix index 401e4d0..c973c9c 100644 --- a/shell.nix +++ b/shell.nix @@ -6,8 +6,9 @@ mkShell { buildInputs = [ python38 python38Packages.telethon - python38Packages.aiosmtpd python38Packages.pytest + python38Packages.isort + python38Packages.pyflakes ]; } diff --git a/src/notifier.py b/src/notifier.py index c66a043..1e47ef3 100644 --- a/src/notifier.py +++ b/src/notifier.py @@ -1,7 +1,8 @@ from email.message import EmailMessage -from smtplib import SMTP_SSL -from constants import DOMAIN, USERNAME, PASSWORD from secrets import token_hex +from smtplib import SMTP_SSL + +from constants import DOMAIN, PASSWORD, USERNAME def initialize_smtp(domain, username, password):