From dc86ab5e9cc40344070654e3b4500a09efbb5d49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Sun, 5 May 2024 19:29:41 +0200 Subject: [PATCH] style: Import name directly --- src/mkdocs_spellcheck/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mkdocs_spellcheck/plugin.py b/src/mkdocs_spellcheck/plugin.py index ae56b39..1a133eb 100644 --- a/src/mkdocs_spellcheck/plugin.py +++ b/src/mkdocs_spellcheck/plugin.py @@ -5,7 +5,7 @@ from __future__ import annotations -import fnmatch +from fnmatch import fnmatch from pathlib import Path from typing import TYPE_CHECKING, Any @@ -130,7 +130,7 @@ def on_page_content(self, html: str, page: Page, **kwargs: Any) -> None: # noqa page: The page instance. **kwargs: Additional arguments passed by MkDocs. """ - if self.run and not any(fnmatch.fnmatch(page.file.src_path, pattern) for pattern in self.skip_files): + if self.run and not any(fnmatch(page.file.src_path, pattern) for pattern in self.skip_files): words = get_words( html, known_words=self.known_words,