Closed saimn closed 1 year ago
Merging #150 (c029e0e) into main (c4aa837) will increase coverage by
0.59%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## main #150 +/- ##
==========================================
+ Coverage 89.31% 89.90% +0.59%
==========================================
Files 24 27 +3
Lines 1104 1139 +35
==========================================
+ Hits 986 1024 +38
+ Misses 118 115 -3
Impacted Files | Coverage Δ | |
---|---|---|
sphinx_automodapi/automodapi.py | 93.93% <100.00%> (+0.18%) |
:arrow_up: |
sphinx_automodapi/automodsumm.py | 85.71% <100.00%> (+0.08%) |
:arrow_up: |
...pi/tests/duplicated_warning/duplicated/__init__.py | 100.00% <100.00%> (ø) |
|
...ests/duplicated_warning/duplicated/foo/__init__.py | 100.00% <100.00%> (ø) |
|
...api/tests/duplicated_warning/duplicated/foo/foo.py | 100.00% <100.00%> (ø) |
|
...utomodapi/tests/example_module/abstract_classes.py | 64.28% <100.00%> (+5.46%) |
:arrow_up: |
sphinx_automodapi/tests/test_cases.py | 100.00% <100.00%> (ø) |
|
sphinx_automodapi/utils.py | 91.30% <100.00%> (+0.47%) |
:arrow_up: |
sphinx_automodapi/autodoc_enhancements.py | 100.00% <0.00%> (+4.76%) |
:arrow_up: |
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
Wasn't easy but I managed to add a test :) Who wants to review ?
Oh, of course tests fail... maybe for old sphinx versions though
All green now :)
Ooooo... how do we use this in astropy
? Does it just magically work?
No magic :D, we must add :noindex:
to the duplicated directives, and this PR just propagates :noindex:
to autodoc.
@saimn , is there an astropy
PR that uses this feature? Would be nice to see if it really works before we merge.
is there an astropy PR that uses this feature? Would be nice to see if it really works before we merge.
@pllim - no, I could do that indeed :+1:
@saimn , any chance we can push this forward? Did you say there is something that not quite working still using this with astropy
?
@WilliamJamieson is unable to build astropy
docs on Python 3.10 because of the Sphinx maxversion pin.
Within another round of testing/debugging on Astropy I'm pretty convinced that the changes here are correct and are doing what is supposed. Adding :noindex:
should help fixing duplicate warning for simple cases such as https://github.com/maxnoe/sphinx-automodapi-duplicated-warning, and probably photutils. But for astropy it's not enough because of the complicated structure of the docs and code, using :noindex:
there then creates some other warnings about missing references.
Is it time to make astropy less complicated?! We cannot pin Sphinx forever.
Is it time to make astropy less complicated?!
I have been working on this for years :stuck_out_tongue:
Even though astropy core doesn't need this, we might as well merge it?
WARNING: Invalid configuration value found: 'language = None'. Update your configuration to a valid language code. Falling back to 'en' (English).
-- Huh?
Gah, CI got disabled. I have to close/reopen.
Merged! I'll let someone else do the release. Thanks, all!
Fix #130.
TODO: see if I can add a test for this.