From f4c86924977789ff4bd56e0e2abf50d1fb8d506f Mon Sep 17 00:00:00 2001 From: Jameson Stillwell Date: Thu, 31 Aug 2023 22:30:50 +0000 Subject: [PATCH 1/3] Update copyright year to 2023 --- docs/conf.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index c232dbe6..d0a1fa55 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -5,7 +5,7 @@ # -- Project information ----------------------------------------------------- project = "MyST-NB" -copyright = "2022, Executable Book Project" +copyright = "2023, Executable Book Project" author = "Executable Book Project" master_doc = "index" @@ -190,16 +190,12 @@ class MystNbConfigDirective(_ConfigBase): required_arguments = 1 option_spec = { "sphinx": directives.flag, - "section": lambda x: directives.choice( - x, ["config", "read", "execute", "render"] - ), + "section": lambda x: directives.choice(x, ["config", "read", "execute", "render"]), } def run(self): """Run the directive.""" - level_name = directives.choice( - self.arguments[0], ["global_lvl", "file_lvl", "cell_lvl"] - ) + level_name = directives.choice(self.arguments[0], ["global_lvl", "file_lvl", "cell_lvl"]) level = Section[level_name] config = NbParserConfig() From 4adaf0807108ab4dc66886e44f52072e91795f9b Mon Sep 17 00:00:00 2001 From: Jameqon Stillwell Date: Thu, 31 Aug 2023 18:37:20 -0400 Subject: [PATCH 2/3] Fix auto format elsewhere --- docs/conf.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index d0a1fa55..6f7ae4e2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -190,12 +190,16 @@ class MystNbConfigDirective(_ConfigBase): required_arguments = 1 option_spec = { "sphinx": directives.flag, - "section": lambda x: directives.choice(x, ["config", "read", "execute", "render"]), + "section": lambda x: directives.choice( + x, ["config", "read", "execute", "render"] + ), } def run(self): """Run the directive.""" - level_name = directives.choice(self.arguments[0], ["global_lvl", "file_lvl", "cell_lvl"]) + level_name = directives.choice( + self.arguments[0], ["global_lvl", "file_lvl", "cell_lvl"] + ) level = Section[level_name] config = NbParserConfig() @@ -307,4 +311,4 @@ def run(self): app.add_directive("myst-config", MystConfigDirective) app.add_directive("mystnb-config", MystNbConfigDirective) - app.add_directive("docutils-cli-help", DocutilsCliHelpDirective) + app.add_directive("docutils-cli-help", DocutilsCliHelpDirective) \ No newline at end of file From 6ede7fe5cb20f4759e9ee88b85986fce9f93367b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 31 Aug 2023 22:41:50 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 6f7ae4e2..edc0cd11 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -311,4 +311,4 @@ def run(self): app.add_directive("myst-config", MystConfigDirective) app.add_directive("mystnb-config", MystNbConfigDirective) - app.add_directive("docutils-cli-help", DocutilsCliHelpDirective) \ No newline at end of file + app.add_directive("docutils-cli-help", DocutilsCliHelpDirective)