Skip to content

Commit

Permalink
fix sonarcloud quality gate failure
Browse files Browse the repository at this point in the history
  • Loading branch information
eneelo committed Aug 7, 2024
1 parent 559d21c commit 0431501
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,18 +395,14 @@ def run(self):

if 'properties' in self.options:
_, props = self.get_class_members(cm, 'property')
#

# NOTE: `fullname` replaced by `name` due to warning in Sphinx 8.0+. Example:
# WARNING: Summarised items should not include the current module. Replace 'qats.TimeSeries.average_frequency' with 'average_frequency'. [autosummary.import_cycle]
#
# self.content += ["~%s.%s" % (fullname, prop) for prop in props if not prop.startswith('_')]
self.content += ["~%s.%s" % (name, prop) for prop in props if not prop.startswith('_')]

if 'methods' in self.options:
_, methods = self.get_class_members(cm, 'method', ['__init__'])

# self.content += ["~%s.%s" % (fullname, method) for method in methods if
# not method.startswith('_')]
self.content += ["~%s.%s" % (name, method) for method in methods if
not method.startswith('_')]

Expand All @@ -424,10 +420,10 @@ def run(self):
typ.append('modules')

members = self.get_module_members(cm, typ=typ)
# self.content = ["~%s.%s" % (fullname, member) for member in members
# if not member.startswith('_')]

self.content = [member for member in members
if not member.startswith('_')]

finally:
return super(AutoAutoSummary, self).run()

Expand Down

0 comments on commit 0431501

Please sign in to comment.