Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move CLI code out of __main__.py to allow multiprocessing to work for python -m sphinxlint #99

Merged
merged 2 commits into from
Nov 12, 2023

Conversation

hugovk
Copy link
Collaborator

@hugovk hugovk commented Nov 5, 2023

Fixes #83.

We need to import the function used by multiprocessing into __main__.py for it to work via python -m sphinxlint. So let's move all of it out and keep a minimal __main__.py.

sphinxlint/__main__.py Outdated Show resolved Hide resolved
@hugovk hugovk merged commit 5b2e1b8 into sphinx-contrib:main Nov 12, 2023
@hugovk hugovk deleted the cli branch November 12, 2023 16:51
@hugovk
Copy link
Collaborator Author

hugovk commented Nov 12, 2023

I'll make a release with this.

@hugovk
Copy link
Collaborator Author

hugovk commented Nov 12, 2023

🚀

https://pypi.org/project/sphinx-lint/0.8.2/
https://github.com/sphinx-contrib/sphinx-lint/releases/tag/v0.8.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AttributeError: Can't get attribute '_check_file' on <module '__main__' (built-in)>
3 participants