Skip to content

Commit

Permalink
deploy: c82844b
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr committed Mar 8, 2024
1 parent fe1d54d commit 252dd51
Show file tree
Hide file tree
Showing 22 changed files with 187 additions and 13,202 deletions.
2 changes: 1 addition & 1 deletion .buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 2fba2474458546b40a0156bdc5162097
config: d7267a108a00056174e267ed015ad6fa
tags: 645f666f9bcd5a90fca523b33c5a78b7
31 changes: 18 additions & 13 deletions _modules/depfinder/inspection.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<html class="writer-html5" lang="en" data-content_root="../../">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>depfinder.inspection &mdash; depfinder 2.10.1.dev2+g5205b30 documentation</title>
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
<title>depfinder.inspection &mdash; depfinder 2.10.1.dev4+gc82844b documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />


<!--[if lt IE 9]>
<script src="../../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
<script src="../../_static/jquery.js"></script>
<script src="../../_static/underscore.js"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script>
<script src="../../_static/doctools.js"></script>
<script src="../../_static/sphinx_highlight.js"></script>
<script src="../../_static/documentation_options.js?v=862faf73"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
Expand All @@ -33,7 +32,7 @@
depfinder
</a>
<div class="version">
2.10.1.dev2+g5205b30
2.10.1.dev4+gc82844b
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
Expand Down Expand Up @@ -314,7 +313,9 @@ <h1>Source code for depfinder.inspection</h1><div class="highlight"><pre>
<span class="k">return</span> <span class="s1">&#39;ImportCatcher: </span><span class="si">%s</span><span class="s1">&#39;</span> <span class="o">%</span> <span class="nb">repr</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">describe</span><span class="p">())</span>


<div class="viewcode-block" id="get_imported_libs"><a class="viewcode-back" href="../../index.html#depfinder.main.get_imported_libs">[docs]</a><span class="k">def</span> <span class="nf">get_imported_libs</span><span class="p">(</span><span class="n">code</span><span class="p">,</span> <span class="n">filename</span><span class="o">=</span><span class="s1">&#39;&#39;</span><span class="p">,</span> <span class="n">custom_namespaces</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<div class="viewcode-block" id="get_imported_libs">
<a class="viewcode-back" href="../../index.html#depfinder.main.get_imported_libs">[docs]</a>
<span class="k">def</span> <span class="nf">get_imported_libs</span><span class="p">(</span><span class="n">code</span><span class="p">,</span> <span class="n">filename</span><span class="o">=</span><span class="s1">&#39;&#39;</span><span class="p">,</span> <span class="n">custom_namespaces</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Given a code snippet, return a list of the imported libraries</span>

<span class="sd"> Parameters</span>
Expand Down Expand Up @@ -350,6 +351,7 @@ <h1>Source code for depfinder.inspection</h1><div class="highlight"><pre>
<span class="k">return</span> <span class="n">import_finder</span></div>



<span class="k">def</span> <span class="nf">parse_file</span><span class="p">(</span><span class="n">python_file</span><span class="p">,</span> <span class="n">custom_namespaces</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Parse a single python file</span>

Expand Down Expand Up @@ -387,7 +389,9 @@ <h1>Source code for depfinder.inspection</h1><div class="highlight"><pre>
<span class="k">return</span> <span class="n">mod_name</span><span class="p">,</span> <span class="n">python_file</span><span class="p">,</span> <span class="n">catcher</span>


<div class="viewcode-block" id="iterate_over_library"><a class="viewcode-back" href="../../index.html#depfinder.main.iterate_over_library">[docs]</a><span class="k">def</span> <span class="nf">iterate_over_library</span><span class="p">(</span><span class="n">path_to_source_code</span><span class="p">,</span> <span class="n">custom_namespaces</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<div class="viewcode-block" id="iterate_over_library">
<a class="viewcode-back" href="../../index.html#depfinder.main.iterate_over_library">[docs]</a>
<span class="k">def</span> <span class="nf">iterate_over_library</span><span class="p">(</span><span class="n">path_to_source_code</span><span class="p">,</span> <span class="n">custom_namespaces</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Helper function to recurse into a library and find imports in .py files.</span>

<span class="sd"> This allows the user to apply filters on the user-side to exclude imports</span>
Expand Down Expand Up @@ -429,6 +433,7 @@ <h1>Source code for depfinder.inspection</h1><div class="highlight"><pre>

<span class="k">if</span> <span class="n">skipped_files</span> <span class="ow">and</span> <span class="n">STRICT_CHECKING</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">RuntimeError</span><span class="p">(</span><span class="s2">&quot;Some files failed to parse. See logs for full stack traces.&quot;</span><span class="p">)</span></div>

</pre></div>

</div>
Expand Down
31 changes: 18 additions & 13 deletions _modules/depfinder/main.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<html class="writer-html5" lang="en" data-content_root="../../">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>depfinder.main &mdash; depfinder 2.10.1.dev2+g5205b30 documentation</title>
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
<title>depfinder.main &mdash; depfinder 2.10.1.dev4+gc82844b documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />


<!--[if lt IE 9]>
<script src="../../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js"></script>
<script src="../../_static/jquery.js"></script>
<script src="../../_static/underscore.js"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js"></script>
<script src="../../_static/doctools.js"></script>
<script src="../../_static/sphinx_highlight.js"></script>
<script src="../../_static/documentation_options.js?v=862faf73"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
Expand All @@ -33,7 +32,7 @@
depfinder
</a>
<div class="version">
2.10.1.dev2+g5205b30
2.10.1.dev4+gc82844b
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
Expand Down Expand Up @@ -117,7 +116,9 @@ <h1>Source code for depfinder.main</h1><div class="highlight"><pre>
<span class="n">STRICT_CHECKING</span> <span class="o">=</span> <span class="kc">False</span>


<div class="viewcode-block" id="simple_import_search"><a class="viewcode-back" href="../../index.html#depfinder.main.simple_import_search">[docs]</a><span class="k">def</span> <span class="nf">simple_import_search</span><span class="p">(</span><span class="n">path_to_source_code</span><span class="p">,</span> <span class="n">remap</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">ignore</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">custom_namespaces</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<div class="viewcode-block" id="simple_import_search">
<a class="viewcode-back" href="../../index.html#depfinder.main.simple_import_search">[docs]</a>
<span class="k">def</span> <span class="nf">simple_import_search</span><span class="p">(</span><span class="n">path_to_source_code</span><span class="p">,</span> <span class="n">remap</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">ignore</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">custom_namespaces</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Return all imported modules in all .py files in `path_to_source_code`</span>

<span class="sd"> Parameters</span>
Expand Down Expand Up @@ -172,7 +173,10 @@ <h1>Source code for depfinder.main</h1><div class="highlight"><pre>
<span class="k">return</span> <span class="n">all_deps</span></div>


<div class="viewcode-block" id="notebook_path_to_dependencies"><a class="viewcode-back" href="../../index.html#depfinder.main.notebook_path_to_dependencies">[docs]</a><span class="k">def</span> <span class="nf">notebook_path_to_dependencies</span><span class="p">(</span><span class="n">path_to_notebook</span><span class="p">,</span> <span class="n">remap</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">custom_namespaces</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>

<div class="viewcode-block" id="notebook_path_to_dependencies">
<a class="viewcode-back" href="../../index.html#depfinder.main.notebook_path_to_dependencies">[docs]</a>
<span class="k">def</span> <span class="nf">notebook_path_to_dependencies</span><span class="p">(</span><span class="n">path_to_notebook</span><span class="p">,</span> <span class="n">remap</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">custom_namespaces</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Helper function that turns a jupyter notebook into a list of dependencies</span>

<span class="sd"> Parameters</span>
Expand Down Expand Up @@ -226,6 +230,7 @@ <h1>Source code for depfinder.main</h1><div class="highlight"><pre>
<span class="k">return</span> <span class="n">all_deps</span></div>



<span class="k">def</span> <span class="nf">sanitize_deps</span><span class="p">(</span><span class="n">deps_dict</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Helper function that takes the output of `notebook_path_to_dependencies`</span>
Expand Down
21 changes: 10 additions & 11 deletions _modules/index.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<html class="writer-html5" lang="en" data-content_root="../">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Overview: module code &mdash; depfinder 2.10.1.dev2+g5205b30 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<title>Overview: module code &mdash; depfinder 2.10.1.dev4+gc82844b documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=19f00094" />


<!--[if lt IE 9]>
<script src="../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
<script src="../_static/jquery.js"></script>
<script src="../_static/underscore.js"></script>
<script src="../_static/_sphinx_javascript_frameworks_compat.js"></script>
<script src="../_static/doctools.js"></script>
<script src="../_static/sphinx_highlight.js"></script>
<script src="../_static/documentation_options.js?v=862faf73"></script>
<script src="../_static/doctools.js?v=888ff710"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
Expand All @@ -33,7 +32,7 @@
depfinder
</a>
<div class="version">
2.10.1.dev2+g5205b30
2.10.1.dev4+gc82844b
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
Expand Down
134 changes: 0 additions & 134 deletions _static/_sphinx_javascript_frameworks_compat.js

This file was deleted.

Loading

0 comments on commit 252dd51

Please sign in to comment.