mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-28 09:55:48 +02:00
Add flake8 docstring plugin, formatting, create base class for embeds & models
This commit is contained in:
parent
8d6dbe1c94
commit
b9c5c6ab10
24 changed files with 241 additions and 16 deletions
0
didier/exceptions/__init__.py
Normal file
0
didier/exceptions/__init__.py
Normal file
12
didier/exceptions/config.py
Normal file
12
didier/exceptions/config.py
Normal 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}")
|
||||
Loading…
Add table
Add a link
Reference in a new issue