[pull] master from sphinx-doc:master#50
Open
pull[bot] wants to merge 460 commits intoGraybar-codespace:masterfrom
Open
[pull] master from sphinx-doc:master#50pull[bot] wants to merge 460 commits intoGraybar-codespace:masterfrom
pull[bot] wants to merge 460 commits intoGraybar-codespace:masterfrom
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Reviewer's Guide by SourceryThis pull request focuses on removing unused variables throughout the Sphinx codebase and updating the ruff dependency. The changes improve code readability, maintainability, and reduce potential errors. The ruff dependency has been updated to version 0.11.0. Updated class diagram for AutoDirectiveclassDiagram
class AutoDirective {
+parse_name()
+resolve_name()
+_find_signature()
+should_suppress_value_header()
}
note for AutoDirective "Unused variable `tp_list` removed from `parse_name` and `_find_signature` methods."
note for AutoDirective "Unused variable `sep` removed from `resolve_name` method."
note for AutoDirective "Unused variable `docstring` removed from `should_suppress_value_header` method."
Updated class diagram for ImageMathclassDiagram
class ImageMath {
+convert_dvi_to_png()
+convert_dvi_to_svg()
+html_visit_displaymath()
}
note for ImageMath "Unused variable `stderr` removed from `convert_dvi_to_svg` method."
note for ImageMath "Unused variable `depth` removed from `html_visit_displaymath` method."
Updated class diagram for ViewcodeclassDiagram
class Viewcode {
+env_purge_doc()
+get_module_filename()
+collect_pages()
}
note for Viewcode "Unused variable `code` and `refname` removed from `env_purge_doc` method."
note for Viewcode "Unused variable `source` removed from `get_module_filename` method."
note for Viewcode "Unused variable `type` removed from `collect_pages` method."
Updated class diagram for GraphvizclassDiagram
class Graphviz {
+render_dot_latex()
+render_dot_texinfo()
}
note for Graphviz "Unused variable `outfn` removed from `render_dot_latex` and `render_dot_texinfo` methods."
Updated class diagram for IncludeclassDiagram
class Include {
+run()
}
note for Include "Unused variable `rel_filename` removed from `run` method."
Updated class diagram for CParserclassDiagram
class CParser {
+_parse_paren_expression_list()
}
note for CParser "Unused variable `trailing_comma` removed from `_parse_paren_expression_list` method."
Updated class diagram for CitationDomainclassDiagram
class CitationDomain {
+resolve_xref()
}
note for CitationDomain "Unused variable `lineno` removed from `resolve_xref` method."
Updated class diagram for CPPParserclassDiagram
class CPPParser {
+_parse_paren_expression_list()
}
note for CPPParser "Unused variable `trailing_comma` removed from `_parse_paren_expression_list` method."
Updated class diagram for IndexEntriesclassDiagram
class IndexEntries {
+_group_by_func()
}
note for IndexEntries "Unused variable `targets` and `sub_items` removed from `_group_by_func` method."
Updated class diagram for AssetclassDiagram
class Asset {
+collect_candidates()
}
note for Asset "Unused variable `basename` removed from `collect_candidates` method."
Updated class diagram for AutoSummaryclassDiagram
class AutoSummary {
+import_ivar_by_name()
+find_autosummary_in_docstring()
}
note for AutoSummary "Unused variable `parent` removed from `import_ivar_by_name` method."
note for AutoSummary "Unused variable `real_name` and `parent` and `modname` removed from `find_autosummary_in_docstring` method."
Updated class diagram for InheritanceDiagramclassDiagram
class InheritanceDiagram {
+run()
}
note for InheritanceDiagram "Unused variable `x` removed from `run` method."
Updated class diagram for NapoleonclassDiagram
class Napoleon {
+_consume_field()
}
note for Napoleon "Unused variable `colon` removed from `_consume_field` method."
Updated class diagram for TexinfoclassDiagram
class Texinfo {
+visit_footnote_reference()
}
note for Texinfo "Unused variable `used` removed from `visit_footnote_reference` method."
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Co-authored-by: daniel.eades <daniel.eades@seebyte.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
…4024) Co-authored-by: Jean-François B. <2589111+jfbu@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Formerly, PDF rendering crashed for inputs of more than about 1350 codelines either from a code-block, or from a literal include, when this literal include used the sphinxVerbatim and not the sphinxalltt route. The fix goes via novel mark-up which is applied in case the literally included file or code-block contains more than 500 codelines. Then chunks of 500 consecutive source codelines are rendered using: sphinxLongVerbatimFirst, sphinxLongVerbatimMiddle, and sphinxLongVerbatimLast. Efforts have been devoted for line numbering and emphasizing to not be modified, and (if so configured) for bottom captions to appear where expected. It was needed to (to cut into smaller pieces and) modify in a very limited manner the legacy sphinxVerbatim which is still used for up to 500 codelines, which corresponds to about 10 a4-sized pages, if document is with default pointsize and margins. Hopefully no consequences will arise from these changes. Known issue: in the unlikely event a pagebreak happens exactly after a chunk of 500 code lines, the continuation hints usually printed at bottom and top of pages are omitted.
…tly to PDF if using ``literalinclude`` (#14066) They can not attow come from code-blocks, having been replaced during Docutils/Sphinx processing with spaces before ending in the .tex file. But they may originate from literalinclude directive. Known limitation: only "top-level" TABs will obey tab stops. Indeed, TABs ending inside the Pygmentize highlighting macro \PYG would cause breakage if the fancyvrb.sty method for them to obey tab stops was put at work. So Sphinx modifies \PYG to let TABs in such location get converted to a fixed number (default 8) of spaces. Close #14064
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.1)
Can you help keep this open source service alive? 💖 Please sponsor : )
Summary by Sourcery
This PR addresses several minor issues across different modules, primarily focusing on removing unused variables and updating a dependency version.
Chores: