From 74ee24ca236f1674a90b94c9437c5d2a4a807b2a Mon Sep 17 00:00:00 2001 From: Kirk Byers Date: Mon, 2 Oct 2023 19:21:43 -0700 Subject: [PATCH] Re-enable docs dir for isort --- Makefile | 2 +- docs/conf.py | 4 ++-- docs/highlighter.py | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index ef20f9074..dfb3a2016 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ pytest: .PHONY: black black: poetry run black --check ${NORNIR_DIRS} - poetry run isort --profile black --check nornir tests + poetry run isort --profile black --check ${NORNIR_DIRS} .PHONY: sphinx sphinx: diff --git a/docs/conf.py b/docs/conf.py index 44136626c..b788d0d67 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -21,10 +21,10 @@ import sys from typing import Dict -from nornir import __version__ - from sphinx.application import Sphinx +from nornir import __version__ + sys.path.insert(0, os.path.abspath("../")) diff --git a/docs/highlighter.py b/docs/highlighter.py index 4f28db3c4..5ece78a42 100644 --- a/docs/highlighter.py +++ b/docs/highlighter.py @@ -1,11 +1,9 @@ from IPython.core.magic import register_line_magic from IPython.display import HTML - from pygments import highlight from pygments.formatters import HtmlFormatter from pygments.lexers import get_lexer_for_filename - HTML_TEMPLATE = """