pre-commit

This commit is contained in:
Zeva Rose 2022-10-27 17:46:38 -06:00
parent d8f5aff799
commit f8d0077189
3 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
"""Load global config."""
from lib2to3.pgen2 import token
import os
from lib2to3.pgen2 import token
from pathlib import Path
from typing import Union

View file

@ -8,6 +8,7 @@ from umongo import Document, EmbeddedDocument, fields
from jarvis_core.db import JARVIS_INST
from jarvis_core.db.utils import get_id, get_now
@JARVIS_INST.register
class Action(EmbeddedDocument):
"""Modlog embedded action document."""

View file

@ -12,4 +12,4 @@ def get_now() -> datetime:
def get_id() -> str:
"""Get nanoid."""
return nanoid.generate(NANOID_ALPHA, 12)
return nanoid.generate(NANOID_ALPHA, 12)