Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Kathy Pippert <[email protected]>
  • Loading branch information
SMoraisAnsys and PipKat authored Apr 29, 2024
1 parent 650b612 commit 3ef8809
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 3ef8809

Please sign in to comment.