Code changes for more ruff checks

This commit is contained in:
boxydog 2024-05-30 10:33:50 -05:00
commit 9d30c5608a
5 changed files with 19 additions and 21 deletions

View file

@ -223,7 +223,7 @@ def read_settings(
# parameters to docutils directive handlers, so we have to have a
# variable here that we'll import from within Pygments.run (see
# rstdirectives.py) to see what the user defaults were.
global PYGMENTS_RST_OPTIONS
global PYGMENTS_RST_OPTIONS # noqa: PLW0603
PYGMENTS_RST_OPTIONS = settings.get("PYGMENTS_RST_OPTIONS", None)
return settings