|
29 | 29 |
|
30 | 30 | extensions = [
|
31 | 31 | "sphinx.ext.intersphinx",
|
32 |
| - "sphinx.ext.autosectionlabel", |
33 | 32 | "sphinx.ext.autodoc",
|
34 | 33 | "sphinx.ext.napoleon",
|
| 34 | + "sphinx.ext.autosectionlabel", |
35 | 35 | "sphinx_design",
|
36 | 36 | "auto_pytabs.sphinx_ext",
|
37 | 37 | "tools.sphinx_ext",
|
|
48 | 48 | "msgspec": ("https://jcristharif.com/msgspec/", None),
|
49 | 49 | "anyio": ("https://anyio.readthedocs.io/en/stable/", None),
|
50 | 50 | "multidict": ("https://multidict.aio-libs.org/en/stable/", None),
|
| 51 | + "cryptography": ("https://cryptography.io/en/latest/", None), |
51 | 52 | "sqlalchemy": ("https://docs.sqlalchemy.org/en/20/", None),
|
52 | 53 | "alembic": ("https://alembic.sqlalchemy.org/en/latest/", None),
|
53 | 54 | "click": ("https://click.palletsprojects.com/en/8.1.x/", None),
|
|
60 | 61 | "advanced-alchemy": ("https://docs.advanced-alchemy.litestar.dev/latest/", None),
|
61 | 62 | "jinja2": ("https://jinja.palletsprojects.com/en/latest/", None),
|
62 | 63 | "trio": ("https://trio.readthedocs.io/en/stable/", None),
|
| 64 | + "pydantic": ("https://docs.pydantic.dev/latest/", None), |
| 65 | + "typing_extensions": ("https://typing-extensions.readthedocs.io/en/stable/", None), |
63 | 66 | }
|
64 | 67 |
|
65 | 68 | napoleon_google_docstring = True
|
|
74 | 77 | autodoc_default_options = {"special-members": "__init__", "show-inheritance": True, "members": True}
|
75 | 78 | autodoc_member_order = "bysource"
|
76 | 79 | autodoc_typehints_format = "short"
|
| 80 | +autodoc_mock_imports = [] |
77 | 81 |
|
78 | 82 | nitpicky = True
|
79 | 83 | nitpick_ignore = [
|
|
164 | 168 | (PY_METH, "litestar.dto.factory.DTOData.create_instance"),
|
165 | 169 | (PY_METH, "litestar.dto.interface.DTOInterface.data_to_encodable_type"),
|
166 | 170 | (PY_CLASS, "MetaData"),
|
167 |
| - (PY_CLASS, "advanced_alchemy.repository.typing.ModelT"), |
168 |
| - (PY_OBJ, "advanced_alchemy.config.common.SessionMakerT"), |
169 |
| - (PY_OBJ, "advanced_alchemy.config.common.ConnectionT"), |
170 |
| - (PY_CLASS, "advanced_alchemy.extensions.litestar.plugins._slots_base.SlotsBase"), |
171 |
| - (PY_CLASS, "advanced_alchemy.config.EngineConfig"), |
172 |
| - (PY_CLASS, "advanced_alchemy.config.common.GenericAlembicConfig"), |
173 |
| - (PY_CLASS, "advanced_alchemy.extensions.litestar.SQLAlchemyDTO"), |
174 |
| - (PY_CLASS, "advanced_alchemy.extensions.litestar.dto.SQLAlchemyDTO"), |
175 |
| - (PY_CLASS, "advanced_alchemy.extensions.litestar.plugins.SQLAlchemyPlugin"), |
176 |
| - (PY_CLASS, "advanced_alchemy.extensions.litestar.plugins.SQLAlchemySerializationPlugin"), |
177 |
| - (PY_CLASS, "advanced_alchemy.extensions.litestar.plugins.SQLAlchemyInitPlugin"), |
178 |
| - (PY_CLASS, "advanced_alchemy.extensions.litestar.config.SQLAlchemySyncConfig"), |
179 |
| - (PY_CLASS, "advanced_alchemy.extensions.litestar.config.SQLAlchemyAsyncConfig"), |
180 |
| - (PY_METH, "advanced_alchemy.extensions.litestar.plugins.SQLAlchemySerializationPlugin.create_dto_for_type"), |
181 |
| - (PY_CLASS, "advanced_alchemy.base.BasicAttributes"), |
182 |
| - (PY_CLASS, "advanced_alchemy.config.AsyncSessionConfig"), |
183 |
| - (PY_CLASS, "advanced_alchemy.config.SyncSessionConfig"), |
184 |
| - (PY_CLASS, "advanced_alchemy.types.JsonB"), |
185 |
| - (PY_CLASS, "advanced_alchemy.types.BigIntIdentity"), |
186 | 171 | (PY_FUNC, "sqlalchemy.get_engine"),
|
187 |
| - (PY_ATTR, "advanced_alchemy.repository.AbstractAsyncRepository.id_attribute"), |
188 | 172 | (PY_OBJ, "litestar.template.base.T_co"),
|
189 | 173 | ("py:exc", "RepositoryError"),
|
190 | 174 | ("py:exc", "InternalServerError"),
|
|
204 | 188 | (PY_CLASS, "typing.Self"),
|
205 | 189 | (PY_CLASS, "attr.AttrsInstance"),
|
206 | 190 | (PY_CLASS, "typing_extensions.TypeGuard"),
|
| 191 | + (PY_CLASS, "advanced_alchemy.types.BigIntIdentity"), |
| 192 | + (PY_CLASS, "advanced_alchemy.types.JsonB"), |
| 193 | + (PY_CLASS, "advanced_alchemy.repository.SQLAlchemyAsyncRepository"), |
207 | 194 | ]
|
208 | 195 |
|
209 | 196 | nitpick_ignore_regex = [
|
|
247 | 234 | "litestar.template": {"litestar.template.base.T_co"},
|
248 | 235 | "litestar.openapi.OpenAPIController.security": {"SecurityRequirement"},
|
249 | 236 | "litestar.response.file.async_file_iterator": {"FileSystemAdapter"},
|
250 |
| - "advanced_alchemy._listeners.touch_updated_timestamp": {"Session"}, |
251 | 237 | re.compile("litestar.response.redirect.*"): {"RedirectStatusType"},
|
252 | 238 | re.compile(r"litestar\.plugins.*"): re.compile(".*ModelT"),
|
253 | 239 | re.compile(r"litestar\.(contrib|repository)\.*"): re.compile(".*T"),
|
|
0 commit comments