-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (121 loc) · 4.11 KB
/
pyproject.toml
File metadata and controls
133 lines (121 loc) · 4.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[project]
name = "sphinx-lua-ls"
authors = [{ name = "Tamika Nomara", email = "taminomara@gmail.com" }]
description = "Automatic documentation generation via EmmyLua/LuaLs"
dynamic = ["version"]
readme = "README.md"
license = "MIT"
requires-python = ">=3.12"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Intended Audience :: Developers",
"Framework :: Sphinx",
"Framework :: Sphinx :: Domain",
"Framework :: Sphinx :: Extension",
"Topic :: Software Development :: Documentation",
"Topic :: Documentation",
"Topic :: Documentation :: Sphinx",
"Typing :: Typed",
]
dependencies = ["sphinx>=8.0,<10.0", "PyGithub>=1.59,<3.0", "requests~=2.31"]
[dependency-groups]
dev = [
"pytest-cov==7.1.0",
{ include-group = "test" },
{ include-group = "lint" },
{ include-group = "doc" },
]
lint = [
"cl-keeper==1.0.0",
"prek==0.3.8",
"ruff==0.15.8",
]
test = [
"pyright==1.1.408",
"pytest==9.0.2",
"sybil==10.0.1",
"pytest-regressions==2.10.0",
"beautifulsoup4==4.14.3",
"myst-parser==5.0.0",
"tox==4.34.1",
"tox-uv==1.29.0",
]
doc = [
"sybil==10.0.1",
"furo==2025.12.19",
"sphinx_design==0.7.0",
"myst-parser==5.0.0",
"sphinx-autobuild==2025.8.25",
]
[project.urls]
Documentation = "https://sphinx-lua-ls.readthedocs.io/en/stable/"
Issues = "https://github.com/sphinx-contrib/lua-ls/issues"
Source = "https://github.com/sphinx-contrib/lua-ls/"
Changelog = "https://github.com/sphinx-contrib/lua-ls/blob/main/CHANGELOG.md"
[build-system]
requires = ["setuptools>=60", "setuptools_scm[toml]>=8", "wheel>=0.40"]
[tool.setuptools_scm]
write_to = "sphinx_lua_ls/_version.py"
[tool.pytest.ini_options]
minversion = "7.0"
addopts = ["--strict-markers", "-p no:doctest"]
testpaths = ["test", "sphinx_lua_ls", "docs"]
[tool.pyright]
include = ["sphinx_lua_ls"]
exclude = ["**/__pycache__"]
typeCheckingMode = "strict"
pythonVersion = "3.12"
pythonPlatform = "All"
# deprecateTypingAliases = true
reportUnnecessaryTypeIgnoreComment = "warning"
reportUnusedFunction = "none"
reportPrivateUsage = "none"
reportMissingParameterType = "none"
reportUnknownParameterType = "none"
reportUnknownVariableType = "none"
reportUnknownMemberType = "none"
reportUnknownArgumentType = "none"
reportUnknownLambdaType = "none"
reportUnnecessaryIsInstance = "none"
reportConstantRedefinition = "none"
reportRedeclaration = "none"
[tool.ruff]
exclude = ["examples/docs/*", "test/roots/*"]
target-version = "py312"
[tool.ruff.lint]
extend-select = ["I", "INP", "T20", "PT", "RET", "SIM", "SLOT", "RUF022"]
ignore = [
"E402", # Module level import not at top of file
"E722", # Do not use bare `except`
"E741", # Ambiguous variable name
"E731", # Do not assign a `lambda` expression, use a `def`
"PT015", # Assertion is always `False`
"PT011", # Too broad error type
"PT012", # `pytest.raises()` block should contain a single simple statement
"PT017", # Found assertion on exception `e` in `except` block
"RET505", # Unnecessary `else` after `return` statement
"RET506", # Unnecessary `else` after `raise` statement
"RET507", # Unnecessary `else` after `continue` statement
"RET508", # Unnecessary `else` after `break` statement
"SIM103", # Return the negated condition directly
"SIM105", # Use `contextlib.suppress` instead of `try`-`except`-`pass`
"SIM108", # Use ternary operator instead of `if`-`else`-block
"SIM114", # Combine `if` branches using logical `or` operator
"SIM118", # Use `key in dict` instead of `key in dict.keys()`
]
extend-safe-fixes = [
"RUF022", # Sort `__all__`.
"PT006", # Rewrite arguments for `pytest.mark.parametrize`.
]
future-annotations = true
[tool.ruff.lint.per-file-ignores]
"test/**/*" = ["T20", "I002", "SIM102", "SIM117"]
"docs/**/*" = ["T20", "I002", "INP001"]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[tool.ruff.format]
docstring-code-format = true