sphinx-contrib / spelling

A spelling checker for Sphinx-based documentation
https://sphinxcontrib-spelling.readthedocs.io/en/latest/
BSD 2-Clause "Simplified" License
82 stars 48 forks source link

filters: fix python filename handling #144

Closed dhellmann closed 2 years ago

dhellmann commented 2 years ago

If the word looks like a python module filename, strip the extension to avoid the side-effect of actually importing the module. This prevents, for example, 'setup.py' triggering an import of the setup module during a doc build, which makes it look like Sphinx is complaining about a commandline argument.

Fixes #142