From 3ef8809874dd8d2c5c88590dbacede591bd3ab15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Morais?= <146729917+SMoraisAnsys@users.noreply.github.com> Date: Mon, 29 Apr 2024 16:37:45 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Kathy Pippert <84872299+PipKat@users.noreply.github.com> --- doc/source/conf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index f0f3c88ce2e..09f9638175c 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -48,7 +48,7 @@ def visit_desc_content(self, node: Element) -> None: # Sphinx event hooks class PrettyPrintDirective(Directive): - """Renders a constant using ``pprint.pformat`` and inserts into the document.""" + """Renders a constant using ``pprint.pformat`` and inserts it into the document.""" required_arguments = 1 def run(self): @@ -77,13 +77,13 @@ def autodoc_skip_member(app, what, name, obj, skip, options): def directory_size(directory_path): - """Compute the size (in mega bytes) of a directory.""" + """Compute the size (in megabytes) of a directory.""" res = 0 for path, _, files in os.walk(directory_path): for f in files: fp = os.path.join(path, f) res += os.stat(fp).st_size - # Convert in mega bytes + # Convert in megabytes res /= 1e6 return res