Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Sep 13, 2023
1 parent 93fb951 commit 6359a5f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 24 deletions.
22 changes: 1 addition & 21 deletions examples/scipy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,7 @@ exec = true
submodules = [ "signal","misc"]
exclude = [
# https://github.com/stsewd/tree-sitter-rst/issues/31
"scipy.interpolate._fitpack_py.splprep",
"scipy.sparse._construct._compressed_sparse_stack",
"scipy.sparse._construct._stack_along_minor_axis",
# OTHER.
"scipy.interpolate._fitpack_impl.spalde",

"scipy.sparse.csgraph._traversal.breadth_first_tree",
"scipy.sparse.csgraph._traversal.depth_first_tree",

# Example is incorrect https://github.com/scipy/scipy/issues/15595
"scipy.signal._peak_finding._identify_ridge_lines",
"scipy.stats._continuous_distns.crystalball_gen._pdf",
"scipy.stats._ksstats._kolmogn_PelzGood",
"scipy.stats._discrete_distns.betabinom_gen",
"scipy.sparse.csgraph._min_spanning_tree.minimum_spanning_tree",
"scipy.stats._morestats.wilcoxon",
"scipy.stats._distn_infrastructure.rv_continuous",
"scipy.stats._stats_py.moment",
"scipy.stats._mannwhitneyu.mannwhitneyu",
"scipy.stats._resampling.bootstrap",
"scipy.sparse.linalg._expm_multiply.expm_multiply",
"scipy.stats._continuous_distns:crystalball_gen._pdf"
]
exclude_jedi = [
"scipy.linalg._sketches.clarkson_woodruff_transform",
Expand Down
2 changes: 1 addition & 1 deletion papyri/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -1912,7 +1912,7 @@ def collect_api_docs(self, root: str, limit_to: List[str]):
if missing:
self.log.warning(
"The following items have been excluded but were not found:\n %s",
json.dumps(missing, indent=2, sort_keys=True),
json.dumps(sorted(missing), indent=2, sort_keys=True),
)

collected = {k: v for k, v in collected.items() if k not in excluded}
Expand Down
10 changes: 8 additions & 2 deletions papyri/ts.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,14 @@ def visit_interpreted_text(self, node, prev_end=None):
inner_value = text_value[1:-1]

if "`" in inner_value:
log.info("issue with inner ` : %r", inner_value)
inner_value = inner_value.replace("`", "'")
log.info(
"Improper backtick found in interpreted text. "
"This is usually due to a missing/stray backtick, or "
"missing escape (`\\`) on trailing charter : %r in (%s)",
inner_value,
self.qa,
)
# inner_value = inner_value.replace("`", "'")

t = Directive(
inner_value,
Expand Down

0 comments on commit 6359a5f

Please sign in to comment.