Skip to content

Commit

Permalink
Rename function in sphinx_ext_docstrings.py to snake_case
Browse files Browse the repository at this point in the history
  • Loading branch information
lisajulia committed Jun 26, 2024
1 parent c3c006b commit 7e38734
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from sphinx.util.docutils import SphinxDirective
from docutils import nodes

def readDocStrings(directive, docstrings_path):
def read_doc_strings(directive, docstrings_path):
print(docstrings_path)
with open(docstrings_path, 'r') as file:
docstrings = json.load(file)
Expand Down Expand Up @@ -42,7 +42,7 @@ class SimulatorsDirective(SphinxDirective):
option_spec = {}

def run(self):
return readDocStrings(self, self.state.document.settings.env.app.config.opm_simulators_docstrings_path)
return read_doc_strings(self, self.state.document.settings.env.app.config.opm_simulators_docstrings_path)

class CommonDirective(SphinxDirective):
required_arguments = 0
Expand All @@ -51,7 +51,7 @@ class CommonDirective(SphinxDirective):
option_spec = {}

def run(self):
return readDocStrings(self, self.state.document.settings.env.app.config.opm_common_docstrings_path)
return read_doc_strings(self, self.state.document.settings.env.app.config.opm_common_docstrings_path)

def setup(app):
app.add_config_value('opm_simulators_docstrings_path', None, 'env')
Expand Down

0 comments on commit 7e38734

Please sign in to comment.