Format source code to PEP8 using Ruff (#36)
* added ruff docs * style: Run ruff and black before yapf pass * yapf -r -i (23 fixes) * fixed conf.py and ran ruff format . * fixed conf.py 2 * formatted argparser.py * formatted src/rocprof_compute_analyze * formatted src/rocprof_compute_profile * formatted soc_base.py * formatted rocprof_compute_tui * formatted gui_components * formatted src/utils * formatted tests/ * format extra files * cleanup * fix test_utils.py * fixed typos * Update pyproject.toml * Update README.md * Update test_utils.py --------- Signed-off-by: jamessiddeley-amd <James.Siddeley@amd.com> Co-authored-by: James Siddeley <James.Siddeley@amd.com> Co-authored-by: systems-assistant[bot] <systems-assistant[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
d3f9ab25eb
commit
58d2a016ce
@@ -13,10 +13,14 @@ import sys
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use str(Path(<rel_path>).absolute().resolve()) to make it absolute, like shown here.
|
||||
#
|
||||
# documentation root, use str(Path(<rel_path>).absolute().resolve())
|
||||
# to make it absolute, like shown here.
|
||||
from pathlib import Path
|
||||
|
||||
from pygments.styles import get_all_styles
|
||||
from recommonmark.parser import CommonMarkParser
|
||||
from recommonmark.transform import AutoStructify
|
||||
|
||||
sys.path.insert(0, str(Path("..").absolute().resolve()))
|
||||
|
||||
repo_version = "unknown"
|
||||
@@ -68,7 +72,6 @@ source_suffix = {
|
||||
".md": "markdown",
|
||||
}
|
||||
|
||||
from recommonmark.parser import CommonMarkParser
|
||||
|
||||
source_parsers = {".md": CommonMarkParser}
|
||||
|
||||
@@ -94,7 +97,6 @@ pygments_style = None
|
||||
latex_engine = "lualatex"
|
||||
latex_show_urls = "footnote"
|
||||
|
||||
|
||||
# -- Options for HTML output -------------------------------------------------
|
||||
|
||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
@@ -113,7 +115,6 @@ html_theme = "sphinx_rtd_theme"
|
||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||
html_static_path = ["_static"]
|
||||
|
||||
|
||||
# -- Options for HTMLHelp output ---------------------------------------------
|
||||
|
||||
# Output file base name for HTML help builder.
|
||||
@@ -136,8 +137,6 @@ html_theme_options = {
|
||||
"titles_only": False,
|
||||
}
|
||||
|
||||
from pygments.styles import get_all_styles
|
||||
|
||||
# The name of the Pygments (syntax highlighting) style to use.
|
||||
styles = list(get_all_styles())
|
||||
preferences = ("emacs", "pastie", "colorful")
|
||||
@@ -146,8 +145,6 @@ for pref in preferences:
|
||||
pygments_style = pref
|
||||
break
|
||||
|
||||
from recommonmark.transform import AutoStructify
|
||||
|
||||
|
||||
# app setup hook
|
||||
def setup(app):
|
||||
|
||||
@@ -13,10 +13,14 @@ import sys
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use str(Path(<rel_path>).absolute().resolve()) to make it absolute, like shown here.
|
||||
#
|
||||
# documentation root, use str(Path(<rel_path>).absolute().resolve()
|
||||
# to make it absolute, like shown here.
|
||||
from pathlib import Path
|
||||
|
||||
from pygments.styles import get_all_styles
|
||||
from recommonmark.parser import CommonMarkParser
|
||||
from recommonmark.transform import AutoStructify
|
||||
|
||||
sys.path.insert(0, str(Path("..").absolute().resolve()))
|
||||
|
||||
repo_version = "unknown"
|
||||
@@ -56,12 +60,10 @@ extensions = [
|
||||
|
||||
show_authors = True
|
||||
|
||||
|
||||
myst_heading_anchors = 4
|
||||
# enable replacement of (tm) & friends
|
||||
myst_enable_extensions = ["replacements", "dollarmath"]
|
||||
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ["_templates"]
|
||||
|
||||
@@ -84,8 +86,6 @@ source_suffix = {
|
||||
# sphinxmark_text_spacing = 800
|
||||
# sphinxmark_text_opacity = 30
|
||||
|
||||
from recommonmark.parser import CommonMarkParser
|
||||
|
||||
source_parsers = {".md": CommonMarkParser}
|
||||
|
||||
# The master toctree document.
|
||||
@@ -110,7 +110,6 @@ pygments_style = None
|
||||
latex_engine = "lualatex"
|
||||
latex_show_urls = "footnote"
|
||||
|
||||
|
||||
# -- Options for HTML output -------------------------------------------------
|
||||
|
||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
@@ -133,7 +132,6 @@ latex_elements = {
|
||||
"sphinxsetup": "verbatimwrapslines=true, verbatimforcewraps=true",
|
||||
}
|
||||
|
||||
|
||||
# -- Options for HTMLHelp output ---------------------------------------------
|
||||
|
||||
# Output file base name for HTML help builder.
|
||||
@@ -157,8 +155,6 @@ html_theme_options = {
|
||||
"titles_only": False,
|
||||
}
|
||||
|
||||
from pygments.styles import get_all_styles
|
||||
|
||||
# The name of the Pygments (syntax highlighting) style to use.
|
||||
styles = list(get_all_styles())
|
||||
preferences = ("emacs", "pastie", "colorful")
|
||||
@@ -167,8 +163,6 @@ for pref in preferences:
|
||||
pygments_style = pref
|
||||
break
|
||||
|
||||
from recommonmark.transform import AutoStructify
|
||||
|
||||
|
||||
# app setup hook
|
||||
def setup(app):
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
|
||||
##############################################################################
|
||||
|
||||
|
||||
# Configuration file for the Sphinx documentation builder.
|
||||
#
|
||||
# This file only contains a selection of the most common options. For a full
|
||||
|
||||
Reference in New Issue
Block a user