Skip to content

Commit

Permalink
bad
Browse files Browse the repository at this point in the history
  • Loading branch information
oprypin committed Sep 10, 2023
1 parent eaa735f commit 72027cf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mkdocs_code_validator/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import shlex
import subprocess
import tempfile
from typing import TYPE_CHECKING, Any, Mapping, MutableMapping, MutableSequence
from typing import TYPE_CHECKING, Any, Mapping, List, MutableMapping, MutableSequence

from mkdocs.config import config_options
from mkdocs.config.base import ValidationError
Expand All @@ -25,13 +25,15 @@
basic_log.propagate = False


print('test')

@dataclasses.dataclass
class IdentifierConfig:
language: str
validators: list[str]


class _IdentifierConfigs(config_options.OptionallyRequired):
class _IdentifierConfigs (config_options.OptionallyRequired):
def __init__(self):
super().__init__(required=True)

Expand All @@ -45,6 +47,7 @@ def run_validation(self, value):
f"Expected a dict as the value for {ident!r}, got {type(config)}"
)


config.setdefault("language", ident)
config.setdefault("validators", [])
try:
Expand Down

0 comments on commit 72027cf

Please sign in to comment.