sphinx-lua-ls 3.9.0__tar.gz → 3.10.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/.github/dependabot.yml +8 -0
  2. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/.github/workflows/ci.yaml +19 -35
  3. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/.pre-commit-config.yaml +12 -6
  4. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/CHANGELOG.md +15 -2
  5. sphinx_lua_ls-3.10.1/CONTRIBUTING.md +106 -0
  6. {sphinx_lua_ls-3.9.0/sphinx_lua_ls.egg-info → sphinx_lua_ls-3.10.1}/PKG-INFO +1 -1
  7. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/conftest.py +2 -0
  8. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/docs/source/index.rst +11 -9
  9. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/docs/source/settings.rst +3 -1
  10. sphinx_lua_ls-3.10.1/poe_tasks.toml +31 -0
  11. sphinx_lua_ls-3.10.1/pyproject.toml +133 -0
  12. sphinx_lua_ls-3.10.1/scripts/resolve_venv.sh +9 -0
  13. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/sphinx_lua_ls/__init__.py +15 -2
  14. sphinx_lua_ls-3.10.1/sphinx_lua_ls/_version.py +24 -0
  15. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/sphinx_lua_ls/apidoc.py +2 -0
  16. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/sphinx_lua_ls/autodoc.py +24 -13
  17. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/sphinx_lua_ls/autoindex.py +2 -0
  18. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/sphinx_lua_ls/config.py +7 -3
  19. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/sphinx_lua_ls/domain.py +5 -1
  20. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/sphinx_lua_ls/inherited.py +3 -1
  21. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/sphinx_lua_ls/intersphinx.py +6 -2
  22. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/sphinx_lua_ls/lua_ls.py +17 -17
  23. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/sphinx_lua_ls/nodes.py +2 -0
  24. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/sphinx_lua_ls/pygments.py +3 -1
  25. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/sphinx_lua_ls/utils.py +2 -0
  26. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1/sphinx_lua_ls.egg-info}/PKG-INFO +1 -1
  27. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/sphinx_lua_ls.egg-info/SOURCES.txt +12 -0
  28. sphinx_lua_ls-3.10.1/test/__init__.py +0 -0
  29. sphinx_lua_ls-3.10.1/test/roots/test-autodoc/index.rst +7 -0
  30. sphinx_lua_ls-3.10.1/test/roots/test-autodoc/src/unknown_object.rst +6 -0
  31. sphinx_lua_ls-3.10.1/test/roots/test-autodoc-disabled/conf.py +7 -0
  32. sphinx_lua_ls-3.10.1/test/roots/test-autodoc-disabled/index.rst +6 -0
  33. sphinx_lua_ls-3.10.1/test/roots/test-autodoc-emmylua/index.rst +7 -0
  34. sphinx_lua_ls-3.10.1/test/roots/test-doc/index.rst +7 -0
  35. sphinx_lua_ls-3.10.1/test/roots/test-intersphinx/Makefile +20 -0
  36. sphinx_lua_ls-3.10.1/test/roots/test-intersphinx/make.bat +35 -0
  37. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_parse.py +3 -3
  38. sphinx_lua_ls-3.10.1/test/test_regression/autodoc-roots-no-roots.html +2 -0
  39. sphinx_lua_ls-3.10.1/test/test_regression/autodoc-unknown_object.html +2 -0
  40. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression.py +52 -12
  41. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_versions.py +1 -1
  42. sphinx_lua_ls-3.10.1/tox.toml +40 -0
  43. sphinx_lua_ls-3.10.1/uv.lock +1519 -0
  44. sphinx_lua_ls-3.9.0/CONTRIBUTING.md +0 -77
  45. sphinx_lua_ls-3.9.0/pyproject.toml +0 -97
  46. sphinx_lua_ls-3.9.0/sphinx_lua_ls/_version.py +0 -34
  47. sphinx_lua_ls-3.9.0/test/roots/test-autodoc/index.rst +0 -15
  48. sphinx_lua_ls-3.9.0/test/roots/test-autodoc-emmylua/index.rst +0 -22
  49. sphinx_lua_ls-3.9.0/test/roots/test-doc/index.rst +0 -11
  50. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/.cl-keeper.yaml +0 -0
  51. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/.gitignore +0 -0
  52. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/.readthedocs.yaml +0 -0
  53. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/LICENSE +0 -0
  54. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/README.md +0 -0
  55. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/docs/Makefile +0 -0
  56. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/docs/make.bat +0 -0
  57. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/docs/source/_extra/robots.txt +0 -0
  58. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/docs/source/apidoc.rst +0 -0
  59. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/docs/source/autodoc.rst +0 -0
  60. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/docs/source/conf.py +0 -0
  61. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/docs/source/directives.rst +0 -0
  62. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/docs/source/example/.emmyrc.json +0 -0
  63. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/docs/source/example/logging.lua +0 -0
  64. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/docs/source/example.rst +0 -0
  65. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/docs/source/installation.rst +0 -0
  66. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/docs/source/quickstart.rst +0 -0
  67. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/docs/source/roles.rst +0 -0
  68. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/setup.cfg +0 -0
  69. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/sphinx_lua_ls/objtree.py +0 -0
  70. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/sphinx_lua_ls/py.typed +0 -0
  71. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/sphinx_lua_ls/static/lua.css +0 -0
  72. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/sphinx_lua_ls.egg-info/dependency_links.txt +0 -0
  73. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/sphinx_lua_ls.egg-info/requires.txt +0 -0
  74. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/sphinx_lua_ls.egg-info/top_level.txt +0 -0
  75. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/conftest.py +0 -0
  76. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-apidoc/.gitignore +0 -0
  77. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-apidoc/Makefile +0 -0
  78. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-apidoc/conf.py +0 -0
  79. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-apidoc/index.rst +0 -0
  80. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-apidoc/lua/mod/inner.lua +0 -0
  81. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-apidoc/lua/mod.lua +0 -0
  82. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-apidoc/make.bat +0 -0
  83. {sphinx_lua_ls-3.9.0/test/roots/test-doc → sphinx_lua_ls-3.10.1/test/roots/test-autodoc}/Makefile +0 -0
  84. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc/conf.py +0 -0
  85. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc/lua/annotations.lua +0 -0
  86. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc/lua/globals.lua +0 -0
  87. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc/lua/globals_2.lua +0 -0
  88. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc/lua/member_ordering.lua +0 -0
  89. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc/lua/module_title.lua +0 -0
  90. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc/lua/nested_modules.lua +0 -0
  91. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc/lua/nesting.lua +0 -0
  92. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc/lua/object_types.lua +0 -0
  93. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc/lua/relative_resolve.lua +0 -0
  94. {sphinx_lua_ls-3.9.0/test/roots/test-doc → sphinx_lua_ls-3.10.1/test/roots/test-autodoc}/make.bat +0 -0
  95. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc/src/annotations.rst +0 -0
  96. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc/src/autoindex.rst +0 -0
  97. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc/src/globals.rst +0 -0
  98. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc/src/member_ordering.rst +0 -0
  99. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc/src/module_title.rst +0 -0
  100. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc/src/nested_modules.rst +0 -0
  101. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc/src/nesting.rst +0 -0
  102. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc/src/nesting_recursive.rst +0 -0
  103. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc/src/object_types.rst +0 -0
  104. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc/src/relative_resolve.rst +0 -0
  105. {sphinx_lua_ls-3.9.0/test/roots/test-autodoc-emmylua → sphinx_lua_ls-3.10.1/test/roots/test-autodoc-disabled}/Makefile +0 -0
  106. {sphinx_lua_ls-3.9.0/test/roots/test-autodoc-emmylua → sphinx_lua_ls-3.10.1/test/roots/test-autodoc-disabled}/make.bat +0 -0
  107. {sphinx_lua_ls-3.9.0/test/roots/test-autodoc-roots → sphinx_lua_ls-3.10.1/test/roots/test-autodoc-emmylua}/Makefile +0 -0
  108. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/conf.py +0 -0
  109. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/lua/.emmyrc.json +0 -0
  110. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/lua/annotations.lua +0 -0
  111. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/lua/doctype.lua +0 -0
  112. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/lua/foo/x.lua +0 -0
  113. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/lua/global_tables.lua +0 -0
  114. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/lua/globals.lua +0 -0
  115. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/lua/globals_2.lua +0 -0
  116. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/lua/incongruent_export.lua +0 -0
  117. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/lua/member_ordering.lua +0 -0
  118. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/lua/module_function.lua +0 -0
  119. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/lua/module_title.lua +0 -0
  120. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/lua/nested_modules.lua +0 -0
  121. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/lua/nesting.lua +0 -0
  122. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/lua/object_types.lua +0 -0
  123. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/lua/relative_resolve.lua +0 -0
  124. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/lua/signatures.lua +0 -0
  125. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/lua/using.lua +0 -0
  126. {sphinx_lua_ls-3.9.0/test/roots/test-autodoc-roots → sphinx_lua_ls-3.10.1/test/roots/test-autodoc-emmylua}/make.bat +0 -0
  127. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/src/annotations.rst +0 -0
  128. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/src/autoindex.rst +0 -0
  129. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/src/doctype.rst +0 -0
  130. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/src/global_tables.rst +0 -0
  131. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/src/globals.rst +0 -0
  132. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/src/incongruent_export.rst +0 -0
  133. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/src/member_ordering.rst +0 -0
  134. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/src/module_function.rst +0 -0
  135. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/src/module_title.rst +0 -0
  136. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/src/nested_modules.rst +0 -0
  137. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/src/nesting.rst +0 -0
  138. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/src/nesting_recursive.rst +0 -0
  139. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/src/object_types.rst +0 -0
  140. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/src/relative_resolve.rst +0 -0
  141. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/src/require.rst +0 -0
  142. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/src/signatures.rst +0 -0
  143. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-emmylua/src/using.rst +0 -0
  144. {sphinx_lua_ls-3.9.0/test/roots/test-autodoc-settings-override → sphinx_lua_ls-3.10.1/test/roots/test-autodoc-roots}/Makefile +0 -0
  145. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-roots/conf.py +0 -0
  146. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-roots/index.rst +0 -0
  147. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-roots/lua/root_1/autodoc.lua +0 -0
  148. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-roots/lua/root_2/autodoc.lua +0 -0
  149. {sphinx_lua_ls-3.9.0/test/roots/test-autodoc-settings-override → sphinx_lua_ls-3.10.1/test/roots/test-autodoc-roots}/make.bat +0 -0
  150. {sphinx_lua_ls-3.9.0/test/roots/test-autodoc → sphinx_lua_ls-3.10.1/test/roots/test-autodoc-settings}/Makefile +0 -0
  151. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-settings/conf.py +0 -0
  152. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-settings/index.rst +0 -0
  153. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-settings/lua/autodoc.lua +0 -0
  154. {sphinx_lua_ls-3.9.0/test/roots/test-autodoc → sphinx_lua_ls-3.10.1/test/roots/test-autodoc-settings}/make.bat +0 -0
  155. {sphinx_lua_ls-3.9.0/test/roots/test-autodoc-settings → sphinx_lua_ls-3.10.1/test/roots/test-autodoc-settings-override}/Makefile +0 -0
  156. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-settings-override/conf.py +0 -0
  157. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-settings-override/index.rst +0 -0
  158. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-autodoc-settings-override/lua/autodoc.lua +0 -0
  159. {sphinx_lua_ls-3.9.0/test/roots/test-autodoc-settings → sphinx_lua_ls-3.10.1/test/roots/test-autodoc-settings-override}/make.bat +0 -0
  160. {sphinx_lua_ls-3.9.0/test/roots/test-intersphinx → sphinx_lua_ls-3.10.1/test/roots/test-doc}/Makefile +0 -0
  161. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-doc/conf.py +0 -0
  162. {sphinx_lua_ls-3.9.0/test/roots/test-intersphinx → sphinx_lua_ls-3.10.1/test/roots/test-doc}/make.bat +0 -0
  163. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-doc/src/annotations.rst +0 -0
  164. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-doc/src/autoindex.rst +0 -0
  165. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-doc/src/directives.rst +0 -0
  166. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-doc/src/inherited.rst +0 -0
  167. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-doc/src/modules.rst +0 -0
  168. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-doc/src/refs.rst +0 -0
  169. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-intersphinx/conf.py +0 -0
  170. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/roots/test-intersphinx/index.rst +0 -0
  171. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/apidoc-md-sep.yml +0 -0
  172. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/apidoc-md.yml +0 -0
  173. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/apidoc-rst-sep.yml +0 -0
  174. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/apidoc-rst.yml +0 -0
  175. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-annotations.html +0 -0
  176. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-autoindex.html +0 -0
  177. /sphinx_lua_ls-3.9.0/test/test_regression/autodoc-roots-no-roots.html → /sphinx_lua_ls-3.10.1/test/test_regression/autodoc-disabled-index.html +0 -0
  178. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-emmylua-annotations.html +0 -0
  179. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-emmylua-autoindex.html +0 -0
  180. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-emmylua-doctype.html +0 -0
  181. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-emmylua-global_tables.html +0 -0
  182. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-emmylua-globals.html +0 -0
  183. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-emmylua-incongruent_export.html +0 -0
  184. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-emmylua-index.html +0 -0
  185. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-emmylua-member_ordering.html +0 -0
  186. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-emmylua-module_function.html +0 -0
  187. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-emmylua-module_title.html +0 -0
  188. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-emmylua-nested_modules.html +0 -0
  189. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-emmylua-nesting.html +0 -0
  190. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-emmylua-nesting_recursive.html +0 -0
  191. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-emmylua-object_types.html +0 -0
  192. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-emmylua-relative_resolve.html +0 -0
  193. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-emmylua-require.html +0 -0
  194. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-emmylua-signatures.html +0 -0
  195. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-emmylua-using.html +0 -0
  196. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-globals.html +0 -0
  197. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-member_ordering.html +0 -0
  198. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-module_title.html +0 -0
  199. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-nested_modules.html +0 -0
  200. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-nesting.html +0 -0
  201. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-nesting_recursive.html +0 -0
  202. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-object_types.html +0 -0
  203. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-relative_resolve.html +0 -0
  204. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-roots-default.html +0 -0
  205. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-roots-single-root.html +0 -0
  206. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-settings-no-recursion.html +0 -0
  207. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/autodoc-settings-simple.html +0 -0
  208. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/doc-annotations.html +0 -0
  209. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/doc-autoindex.html +0 -0
  210. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/doc-directives.html +0 -0
  211. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/doc-inherited.html +0 -0
  212. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/doc-modules.html +0 -0
  213. {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.1}/test/test_regression/doc-refs.html +0 -0
@@ -24,3 +24,11 @@ updates:
24
24
  - "black"
25
25
  - "isort"
26
26
  - "pre-commit"
27
+ - package-ecosystem: "github-actions"
28
+ directory: "/"
29
+ schedule:
30
+ interval: "weekly"
31
+ groups:
32
+ gh-actions:
33
+ patterns:
34
+ - "*"
@@ -14,11 +14,11 @@ jobs:
14
14
  runs-on: ubuntu-latest
15
15
  steps:
16
16
  - name: Checkout source
17
- uses: actions/checkout@v4
17
+ uses: actions/checkout@v6
18
18
  with:
19
19
  fetch-depth: 0
20
20
  - name: Set up python ${{ matrix.python-version }}
21
- uses: actions/setup-python@v4
21
+ uses: actions/setup-python@v6
22
22
  with:
23
23
  python-version: "3.12"
24
24
  - name: Update pip
@@ -38,7 +38,7 @@ jobs:
38
38
  - name: Download EmmyLua for MacOs
39
39
  run: python -m sphinx_lua_ls.lua_ls darwin arm --runtime emmylua ~/lua_ls_release/macos-latest
40
40
  - name: Upload artifact
41
- uses: actions/upload-artifact@v4
41
+ uses: actions/upload-artifact@v7
42
42
  with:
43
43
  name: lua_ls_release
44
44
  path: ~/lua_ls_release
@@ -55,9 +55,6 @@ jobs:
55
55
  - ubuntu-latest
56
56
  - macos-latest
57
57
  - windows-latest
58
- python-version:
59
- - "3.12"
60
- - "3.13"
61
58
  type:
62
59
  - test
63
60
  include:
@@ -67,42 +64,30 @@ jobs:
67
64
  runs-on: ${{ matrix.os }}
68
65
  steps:
69
66
  - name: Checkout source
70
- uses: actions/checkout@v4
67
+ uses: actions/checkout@v6
71
68
  with:
72
69
  fetch-depth: 0
73
- - name: Set up python ${{ matrix.python-version }}
74
- uses: actions/setup-python@v4
75
- with:
76
- python-version: ${{ matrix.python-version }}
77
- - name: Update pip
78
- run: python -m pip install --upgrade pip
79
- # Tests
80
- - name: Install test dependencies
81
- if: ${{ matrix.type == 'test' }}
70
+ - name: Install UV
71
+ uses: astral-sh/setup-uv@v7
72
+ - name: Install dependencies
82
73
  run: |
83
- python -m pip install . --group test
84
- python -m pip install -U sphinx
74
+ uv tool install poethepoet
75
+ # Tests
85
76
  - name: Download LuaLs
86
77
  if: ${{ matrix.type == 'test' }}
87
- uses: actions/download-artifact@v4
78
+ uses: actions/download-artifact@v8
88
79
  with:
89
80
  name: lua_ls_release
90
81
  path: ~/lua_ls_release
91
- - name: Check types
92
- if: ${{ matrix.type == 'test' }}
93
- run: pyright
94
82
  - name: Test package
95
83
  if: ${{ matrix.type == 'test' }}
96
- run: pytest -vv --showlocals --tb=short --color=yes --junit-xml=test-results.xml
84
+ run: poe ci
97
85
  env:
98
86
  LUA_LS_CACHE_PATH: ~/lua_ls_release/${{ matrix.os }}
99
87
  # Lint
100
- - name: Install lint dependencies
101
- if: ${{ matrix.type == 'code style' }}
102
- run: python -m pip install . --group lint
103
88
  - name: Check code style
104
89
  if: ${{ matrix.type == 'code style' }}
105
- run: pre-commit run -a
90
+ run: poe lint --color always
106
91
  publish_to_pypi:
107
92
  name: Publish package to PyPi
108
93
  needs:
@@ -117,7 +102,7 @@ jobs:
117
102
  id-token: write
118
103
  steps:
119
104
  - name: Checkout source
120
- uses: actions/checkout@v4
105
+ uses: actions/checkout@v6
121
106
  with:
122
107
  fetch-depth: 0
123
108
  - name: Generate release metadata
@@ -126,15 +111,14 @@ jobs:
126
111
  ref="${{ github.ref }}";
127
112
  version=${ref#refs/tags/v};
128
113
  link="https://pypi.org/p/sphinx-lua-ls/${version}";
129
- echo "version=${version}" >> $GITHUB_OUTPUT
130
114
  echo "link=${link}" >> $GITHUB_OUTPUT
131
115
  - name: Parse Changelog
132
116
  id: changelog
133
- uses: mindsers/changelog-reader-action@v2
117
+ uses: taminomara/cl-keeper@v1
134
118
  with:
135
- version: ${{ steps.metadata.outputs.version }}
119
+ version: ${{ github.ref }}
136
120
  - name: Set up python 3.12
137
- uses: actions/setup-python@v4
121
+ uses: actions/setup-python@v6
138
122
  with:
139
123
  python-version: 3.12
140
124
  - name: Install build
@@ -150,11 +134,11 @@ jobs:
150
134
  - name: Create GitHub release
151
135
  uses: softprops/action-gh-release@v2
152
136
  with:
153
- prerelease: ${{ steps.changelog.outputs.status == 'prereleased' }}
154
- draft: ${{ steps.changelog.outputs.status == 'unreleased' }}
137
+ prerelease: ${{ fromJSON(steps.changelog.outputs.is-pre-release) }}
138
+ draft: ${{ fromJSON(steps.changelog.outputs.is-unreleased) }}
155
139
  body: |
156
140
  ## Changelog
157
141
 
158
- ${{ steps.changelog.outputs.changes }}
142
+ ${{ steps.changelog.outputs.text }}
159
143
 
160
144
  [See release on PyPi](${{ steps.metadata.outputs.link }})
@@ -1,18 +1,24 @@
1
1
  repos:
2
2
  - repo: local
3
3
  hooks:
4
- - id: black
5
- name: black
4
+ - id: ruff-check
5
+ name: ruff check
6
6
  language: system
7
- entry: black
7
+ entry: scripts/resolve_venv.sh ruff check --force-exclude
8
8
  types_or: [python, pyi]
9
9
  require_serial: true
10
- - id: isort
11
- name: isort
10
+ - id: ruff-format
11
+ name: ruff format
12
12
  language: system
13
- entry: isort --filter-files
13
+ entry: scripts/resolve_venv.sh ruff format --force-exclude
14
14
  types_or: [python, pyi]
15
15
  require_serial: true
16
+ - id: clk
17
+ name: changelog keeper
18
+ language: system
19
+ entry: scripts/resolve_venv.sh clk pre-commit-check
20
+ require_serial: true
21
+ types_or: [toml, yaml, markdown]
16
22
  - repo: https://github.com/pre-commit/pre-commit-hooks
17
23
  rev: v6.0.0
18
24
  hooks:
@@ -2,6 +2,15 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [3.10.1] - 2026-03-29
6
+
7
+ - Fiexd broken cross-references on the search page.
8
+
9
+ ## [3.10.0] - 2026-01-29
10
+
11
+ - Added option to disable running lua-ls (`lua_ls_backend = "disable"`) for cases when
12
+ only manual documentation is required ([#47] by [@pieterlexis]).
13
+
5
14
  ## [3.9.0] - 2026-01-23
6
15
 
7
16
  - Fixed LaTeX build and improved rendering of multiline signatures in LaTeX ([#46]).
@@ -251,10 +260,11 @@ Initial release.
251
260
 
252
261
  ## [0.0.1] - 2025-03-09
253
262
 
254
- [#46]:https://github.com/sphinx-contrib/lua-ls/issues/46
255
263
  [#18]: https://github.com/sphinx-contrib/lua-ls/pull/18
256
264
  [#19]: https://github.com/sphinx-contrib/lua-ls/pull/19
257
265
  [#3]: https://github.com/sphinx-contrib/lua-ls/issues/3
266
+ [#46]: https://github.com/sphinx-contrib/lua-ls/issues/46
267
+ [#47]: https://github.com/sphinx-contrib/lua-ls/pull/47
258
268
  [0.0.1]: https://github.com/sphinx-contrib/lua-ls/releases/tag/v0.0.1
259
269
  [0.0.2]: https://github.com/sphinx-contrib/lua-ls/compare/v0.0.1...v0.0.2
260
270
  [0.0.3]: https://github.com/sphinx-contrib/lua-ls/compare/v0.0.2...v0.0.3
@@ -265,6 +275,8 @@ Initial release.
265
275
  [2.0.1]: https://github.com/sphinx-contrib/lua-ls/compare/v2.0.0...v2.0.1
266
276
  [3.0.0]: https://github.com/sphinx-contrib/lua-ls/compare/v2.0.1...v3.0.0
267
277
  [3.1.0]: https://github.com/sphinx-contrib/lua-ls/compare/v3.0.0...v3.1.0
278
+ [3.10.0]: https://github.com/sphinx-contrib/lua-ls/compare/v3.9.0...v3.10.0
279
+ [3.10.1]: https://github.com/sphinx-contrib/lua-ls/compare/v3.10.0...v3.10.1
268
280
  [3.2.0]: https://github.com/sphinx-contrib/lua-ls/compare/v3.1.0...v3.2.0
269
281
  [3.3.0]: https://github.com/sphinx-contrib/lua-ls/compare/v3.2.0...v3.3.0
270
282
  [3.4.0]: https://github.com/sphinx-contrib/lua-ls/compare/v3.3.0...v3.4.0
@@ -277,6 +289,7 @@ Initial release.
277
289
  [3.8.1]: https://github.com/sphinx-contrib/lua-ls/compare/v3.8.0...v3.8.1
278
290
  [3.9.0]: https://github.com/sphinx-contrib/lua-ls/compare/v3.8.1...v3.9.0
279
291
  [@bkoropoff]: https://github.com/bkoropoff
292
+ [@pieterlexis]: https://github.com/pieterlexis
280
293
  [emmylua]: https://github.com/EmmyLuaLs/emmylua-analyzer-rust/
281
294
  [luals#3301]: https://github.com/LuaLS/lua-language-server/issues/3301
282
- [unreleased]: https://github.com/sphinx-contrib/lua-ls/compare/v3.9.0...HEAD
295
+ [unreleased]: https://github.com/sphinx-contrib/lua-ls/compare/v3.10.1...HEAD
@@ -0,0 +1,106 @@
1
+ # Contributing to Sphinx-LuaLs
2
+
3
+ ## Set up your environment
4
+
5
+ We use [`uv`] and [`poe`] to run tasks, but it is possible to use pure pip as well.
6
+
7
+ [`uv`]: https://docs.astral.sh/uv/
8
+ [`poe`]: https://poethepoet.natn.io/index.html
9
+
10
+ ### Using pip
11
+
12
+ 1. Create a virtual environment with python `3.12` or newer.
13
+
14
+ 2. Make sure your pip is up to date:
15
+
16
+ ```shell
17
+ pip install -U pip
18
+ ```
19
+
20
+ 2. Install package in development mode, and install dev dependencies:
21
+
22
+ ```shell
23
+ pip install -e . --group dev
24
+ ```
25
+
26
+ 3. Install pre-commit hooks:
27
+
28
+ ```shell
29
+ prek install
30
+ ```
31
+
32
+ 4. [Install `poe`], either globally or in virtual environment:
33
+
34
+ ```shell
35
+ pip install poethepoet
36
+ ```
37
+
38
+ [Install `poe`]: https://poethepoet.natn.io/installation.html
39
+
40
+ 5. If you're not on linux, install [EmmyLua Doc Cli].
41
+
42
+ [EmmyLua Doc Cli]: https://github.com/EmmyLuaLs/emmylua-analyzer-rust/?tab=readme-ov-file#-installation
43
+
44
+ ### Using uv
45
+
46
+ 1. Sync your virtual environment:
47
+
48
+ ```shell
49
+ uv sync
50
+ ```
51
+
52
+ 2. Install pre-commit hooks:
53
+
54
+ ```shell
55
+ uv run prek install
56
+ ```
57
+
58
+ 3. [Install `poe`] if you don't have it already:
59
+
60
+ ```shell
61
+ uv tool install poethepoet
62
+ ```
63
+
64
+ 5. If you're not on linux, install [EmmyLua Doc Cli].
65
+
66
+
67
+ ## Run tests
68
+
69
+ We use `poe` for most of the tasks:
70
+
71
+ ```shell
72
+ poe lint # Lint and fix code style.
73
+ poe test # Run tests.
74
+ poe test-all # Run tests for all pythons.
75
+ ```
76
+
77
+ You can see all commands in `poe`'s help:
78
+
79
+ ```shell
80
+ poe --help
81
+ ```
82
+
83
+
84
+ ## Build docs
85
+
86
+ Just run `sphinx` as usual, nothing special is required:
87
+
88
+ ```shell
89
+ cd docs/
90
+ make html
91
+ ```
92
+
93
+ Sphinx-LuaLs will download the latest version of Lua Language Server for you.
94
+
95
+
96
+ ## Release
97
+
98
+ 1. Make sure that "Unreleased" section in `changelog.md` is up to date.
99
+
100
+ 2. Run `poe release major|minor|patch` to bump version in changelog
101
+ and create a release tag.
102
+
103
+ 3. Push a git tag. You'll need a repository admin role to do so.
104
+
105
+ 4. From here, release happens automatically. PyPi package will be uploaded from
106
+ CI job, and documentation will be updated by Read the Docs build.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sphinx-lua-ls
3
- Version: 3.9.0
3
+ Version: 3.10.1
4
4
  Summary: Automatic documentation generation via EmmyLua/LuaLs
5
5
  Author-email: Tamika Nomara <taminomara@gmail.com>
6
6
  License-Expression: MIT
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  import sys
2
4
 
3
5
  from sybil import Sybil
@@ -11,19 +11,21 @@ based on `EmmyLua`_ or `LuaLs`_ language servers.
11
11
  See an example output: `logging`.
12
12
 
13
13
  .. toctree::
14
- :maxdepth: 1
14
+ :maxdepth: 1
15
15
 
16
- installation
17
- quickstart
18
- directives
19
- roles
20
- autodoc
21
- apidoc
22
- settings
23
- example
16
+ installation
17
+ quickstart
18
+ directives
19
+ roles
20
+ autodoc
21
+ apidoc
22
+ settings
23
+ example
24
24
 
25
25
  .. toctree::
26
26
  :hidden:
27
27
  :caption: Links
28
28
 
29
29
  GitHub <https://github.com/sphinx-contrib/lua-ls/>
30
+ Issues <https://github.com/sphinx-contrib/lua-ls/issues>
31
+ Changelog <https://github.com/sphinx-contrib/lua-ls/blob/main/CHANGELOG.md>
@@ -18,7 +18,9 @@ Settings
18
18
  .. py:data:: lua_ls_backend
19
19
  :type: str
20
20
 
21
- Controls which lua analyzer is used. Can be either ``"emmylua"`` or ``"luals"``.
21
+ Controls which lua analyzer is used. Can be either ``"emmylua"``, ``"luals"``, or ``"disable"``.
22
+ When set to ``"disable"``, no Lua files are analyzed, all language server related settings
23
+ are ignored, and :doc:`autodoc` does not work.
22
24
 
23
25
  .. py:data:: lua_ls_auto_install
24
26
  :type: bool
@@ -0,0 +1,31 @@
1
+ [executor]
2
+ type = "uv"
3
+
4
+ [tasks.lint]
5
+ help = "Run pre-commit linters"
6
+ cmd = "prek run --all-files"
7
+
8
+ [tasks.test]
9
+ help = "Run tests"
10
+ cmd = "tox -e 3.14"
11
+
12
+ [tasks.test-all]
13
+ help = "Run tests for all pythons"
14
+ cmd = "tox p --"
15
+
16
+ [tasks.doc]
17
+ help = "Build HTML docs"
18
+ cmd = "sphinx-build -b html docs/source docs/build/html -d docs/build/doctrees -j 12 -n"
19
+
20
+ [tasks.doc-watch]
21
+ help = "Start documentation server and rebuild HTML docs on every change"
22
+ cmd = "sphinx-autobuild docs/source docs/build/html -d docs/build/doctrees --watch . -j 12 -n"
23
+
24
+ [tasks.release]
25
+ help = "Bump version, create release commit and tag"
26
+ cmd = "clk bump --commit"
27
+ use_exec = true
28
+
29
+ [tasks.ci]
30
+ help = "For CI job"
31
+ cmd = "tox --colored yes p --skip-env lint --"
@@ -0,0 +1,133 @@
1
+ [project]
2
+ name = "sphinx-lua-ls"
3
+ authors = [{ name = "Tamika Nomara", email = "taminomara@gmail.com" }]
4
+ description = "Automatic documentation generation via EmmyLua/LuaLs"
5
+ dynamic = ["version"]
6
+ readme = "README.md"
7
+ license = "MIT"
8
+ requires-python = ">=3.12"
9
+ classifiers = [
10
+ "Development Status :: 5 - Production/Stable",
11
+ "Programming Language :: Python :: 3 :: Only",
12
+ "Programming Language :: Python :: 3",
13
+ "Programming Language :: Python :: 3.12",
14
+ "Programming Language :: Python :: 3.13",
15
+ "Intended Audience :: Developers",
16
+ "Framework :: Sphinx",
17
+ "Framework :: Sphinx :: Domain",
18
+ "Framework :: Sphinx :: Extension",
19
+ "Topic :: Software Development :: Documentation",
20
+ "Topic :: Documentation",
21
+ "Topic :: Documentation :: Sphinx",
22
+ "Typing :: Typed",
23
+ ]
24
+ dependencies = ["sphinx>=8.0,<10.0", "PyGithub>=1.59,<3.0", "requests~=2.31"]
25
+
26
+ [dependency-groups]
27
+ dev = [
28
+ "pytest-cov==7.1.0",
29
+ { include-group = "test" },
30
+ { include-group = "lint" },
31
+ { include-group = "doc" },
32
+ ]
33
+ lint = [
34
+ "cl-keeper==1.0.0",
35
+ "prek==0.3.8",
36
+ "ruff==0.15.8",
37
+ ]
38
+ test = [
39
+ "pyright==1.1.408",
40
+ "pytest==9.0.2",
41
+ "sybil==10.0.1",
42
+ "pytest-regressions==2.10.0",
43
+ "beautifulsoup4==4.14.3",
44
+ "myst-parser==5.0.0",
45
+ "tox==4.34.1",
46
+ "tox-uv==1.29.0",
47
+ ]
48
+ doc = [
49
+ "sybil==10.0.1",
50
+ "furo==2025.12.19",
51
+ "sphinx_design==0.7.0",
52
+ "myst-parser==5.0.0",
53
+ "sphinx-autobuild==2025.8.25",
54
+ ]
55
+
56
+ [project.urls]
57
+ Documentation = "https://sphinx-lua-ls.readthedocs.io/en/stable/"
58
+ Issues = "https://github.com/sphinx-contrib/lua-ls/issues"
59
+ Source = "https://github.com/sphinx-contrib/lua-ls/"
60
+ Changelog = "https://github.com/sphinx-contrib/lua-ls/blob/main/CHANGELOG.md"
61
+
62
+ [build-system]
63
+ requires = ["setuptools>=60", "setuptools_scm[toml]>=8", "wheel>=0.40"]
64
+
65
+ [tool.setuptools_scm]
66
+ write_to = "sphinx_lua_ls/_version.py"
67
+
68
+ [tool.pytest.ini_options]
69
+ minversion = "7.0"
70
+ addopts = ["--strict-markers", "-p no:doctest"]
71
+ testpaths = ["test", "sphinx_lua_ls", "docs"]
72
+
73
+ [tool.pyright]
74
+ include = ["sphinx_lua_ls"]
75
+ exclude = ["**/__pycache__"]
76
+ typeCheckingMode = "strict"
77
+ pythonVersion = "3.12"
78
+ pythonPlatform = "All"
79
+
80
+ # deprecateTypingAliases = true
81
+ reportUnnecessaryTypeIgnoreComment = "warning"
82
+ reportUnusedFunction = "none"
83
+ reportPrivateUsage = "none"
84
+ reportMissingParameterType = "none"
85
+ reportUnknownParameterType = "none"
86
+ reportUnknownVariableType = "none"
87
+ reportUnknownMemberType = "none"
88
+ reportUnknownArgumentType = "none"
89
+ reportUnknownLambdaType = "none"
90
+ reportUnnecessaryIsInstance = "none"
91
+ reportConstantRedefinition = "none"
92
+ reportRedeclaration = "none"
93
+
94
+ [tool.ruff]
95
+ exclude = ["examples/docs/*", "test/roots/*"]
96
+ target-version = "py312"
97
+
98
+ [tool.ruff.lint]
99
+ extend-select = ["I", "INP", "T20", "PT", "RET", "SIM", "SLOT", "RUF022"]
100
+ ignore = [
101
+ "E402", # Module level import not at top of file
102
+ "E722", # Do not use bare `except`
103
+ "E741", # Ambiguous variable name
104
+ "E731", # Do not assign a `lambda` expression, use a `def`
105
+ "PT015", # Assertion is always `False`
106
+ "PT011", # Too broad error type
107
+ "PT012", # `pytest.raises()` block should contain a single simple statement
108
+ "PT017", # Found assertion on exception `e` in `except` block
109
+ "RET505", # Unnecessary `else` after `return` statement
110
+ "RET506", # Unnecessary `else` after `raise` statement
111
+ "RET507", # Unnecessary `else` after `continue` statement
112
+ "RET508", # Unnecessary `else` after `break` statement
113
+ "SIM103", # Return the negated condition directly
114
+ "SIM105", # Use `contextlib.suppress` instead of `try`-`except`-`pass`
115
+ "SIM108", # Use ternary operator instead of `if`-`else`-block
116
+ "SIM114", # Combine `if` branches using logical `or` operator
117
+ "SIM118", # Use `key in dict` instead of `key in dict.keys()`
118
+ ]
119
+ extend-safe-fixes = [
120
+ "RUF022", # Sort `__all__`.
121
+ "PT006", # Rewrite arguments for `pytest.mark.parametrize`.
122
+ ]
123
+ future-annotations = true
124
+
125
+ [tool.ruff.lint.per-file-ignores]
126
+ "test/**/*" = ["T20", "I002", "SIM102", "SIM117"]
127
+ "docs/**/*" = ["T20", "I002", "INP001"]
128
+
129
+ [tool.ruff.lint.isort]
130
+ required-imports = ["from __future__ import annotations"]
131
+
132
+ [tool.ruff.format]
133
+ docstring-code-format = true
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env bash
2
+
3
+ set -e
4
+
5
+ if [[ -z $VIRTUAL_ENV && -f .venv/bin/activate ]]; then
6
+ source .venv/bin/activate
7
+ fi
8
+
9
+ $@
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  import fnmatch
2
4
  import pathlib
3
5
  import re
@@ -24,7 +26,7 @@ import sphinx_lua_ls.lua_ls
24
26
  import sphinx_lua_ls.nodes
25
27
  import sphinx_lua_ls.objtree
26
28
  import sphinx_lua_ls.utils
27
- from sphinx_lua_ls._version import __version__, __version_tuple__
29
+ from sphinx_lua_ls._version import __version__, __version_tuple__ # noqa: F401
28
30
  from sphinx_lua_ls.pygments import LuaLexer
29
31
 
30
32
  logger = logging.getLogger("sphinx_lua_ls")
@@ -33,6 +35,9 @@ logger = logging.getLogger("sphinx_lua_ls")
33
35
  def run_lua_ls(app: sphinx.application.Sphinx):
34
36
  domain: sphinx_lua_ls.domain.LuaDomain = app.env.get_domain("lua") # type: ignore
35
37
 
38
+ if domain.config.backend == "disable":
39
+ return
40
+
36
41
  root_dir = domain.config.project_root
37
42
  project_directories = domain.config.project_directories
38
43
  if project_directories is None:
@@ -71,7 +76,7 @@ def run_lua_ls(app: sphinx.application.Sphinx):
71
76
  install=domain.config.auto_install,
72
77
  cache_path=domain.config.auto_install_location,
73
78
  )
74
- except sphinx_lua_ls.lua_ls.LuaLsError as e:
79
+ except sphinx_lua_ls.lua_ls.LuaLsError:
75
80
  raise
76
81
  except Exception as e:
77
82
  raise sphinx.errors.ExtensionError(str(e)) from e
@@ -130,6 +135,12 @@ def run_apidoc(
130
135
  app: sphinx.application.Sphinx,
131
136
  ):
132
137
  domain = _t.cast(sphinx_lua_ls.domain.LuaDomain, app.env.get_domain("lua"))
138
+ if domain.config.backend == "disable":
139
+ logger.warning(
140
+ "apidoc requested, but the language server backend is disabled",
141
+ type="lua-ls",
142
+ )
143
+ return
133
144
  cwd = pathlib.Path.cwd()
134
145
  for name, params in domain.config.apidoc_roots.items():
135
146
  try:
@@ -172,6 +183,8 @@ def suppress_auto_ref_warnings(
172
183
  ):
173
184
  if node["refdomain"] == "lua" and node["reftype"] == "_auto":
174
185
  return True
186
+ else:
187
+ return None
175
188
 
176
189
 
177
190
  def setup(app: sphinx.application.Sphinx):
@@ -0,0 +1,24 @@
1
+ # file generated by vcs-versioning
2
+ # don't change, don't track in version control
3
+ from __future__ import annotations
4
+
5
+ __all__ = [
6
+ "__version__",
7
+ "__version_tuple__",
8
+ "version",
9
+ "version_tuple",
10
+ "__commit_id__",
11
+ "commit_id",
12
+ ]
13
+
14
+ version: str
15
+ __version__: str
16
+ __version_tuple__: tuple[int | str, ...]
17
+ version_tuple: tuple[int | str, ...]
18
+ commit_id: str | None
19
+ __commit_id__: str | None
20
+
21
+ __version__ = version = '3.10.1'
22
+ __version_tuple__ = version_tuple = (3, 10, 1)
23
+
24
+ __commit_id__ = commit_id = 'ga3c6199fd'
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  import os
2
4
  import pathlib
3
5
  import subprocess