Skip to content

Commit

Permalink
added some noqa
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Bittner committed Mar 31, 2023
1 parent 3f5c25f commit fe483bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kroki/config.py
Expand Up @@ -90,7 +90,7 @@ def __init__(

def get_block_regex(self, fence_prefix):
diagram_types_re = "|".join(self.diagram_types_supporting_file.keys())
return rf"(?:```{fence_prefix})({diagram_types_re})((?:\s?[a-zA-Z0-9\-_]+=[a-zA-Z0-9\-_]+)*)\n(.*?)(?:```)"
return rf"(?:```{fence_prefix})({diagram_types_re})((?:\s?[a-zA-Z0-9\-_]+=[a-zA-Z0-9\-_]+)*)\n(.*?)(?:```)" # noqa

def get_file_ext(self, kroki_type):
return self.diagram_types_supporting_file[kroki_type]
4 changes: 2 additions & 2 deletions kroki/plugin.py
Expand Up @@ -38,7 +38,7 @@ class KrokiPlugin(BasePlugin):
"UserAgent",
config.config_options.Type(
str,
default="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0",
default="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0", # noqa
),
),
("DownloadImages", config.config_options.Type(bool, default=False)),
Expand Down Expand Up @@ -125,7 +125,7 @@ def _replace_kroki_block(self, match_obj, files, page):
kroki_data = match_obj.group(3)

if kroki_data.startswith(self.from_file_prefix):
file_name = kroki_data[self.from_file_prefix_len :].strip()
file_name = kroki_data[self.from_file_prefix_len :].strip() # noqa
file_path = self._docs_dir / file_name
info(f'reading kroki block from file: "{file_path.absolute()}"')
try:
Expand Down

0 comments on commit fe483bf

Please sign in to comment.