Add flake8 docstring plugin, formatting, create base class for embeds & models

This commit is contained in:
stijndcl 2022-07-13 22:54:16 +02:00
parent 8d6dbe1c94
commit b9c5c6ab10
24 changed files with 241 additions and 16 deletions

View file

View file

@ -0,0 +1,12 @@
__all__ = ["MissingEnvironmentVariable"]
class MissingEnvironmentVariable(RuntimeError):
"""Exception raised when an environment variable is missing
These are not necessarily checked on startup, because they may be unused
during a given test run, and random unrelated crashes would be annoying
"""
def __init__(self, variable: str):
super().__init__(f"Missing environment variable: {variable}")