* bump ty

* bump ty again

* update rules

* remove unused ignores

* add asserts for none

* fix tests that might be none

* fix typing

* update setting

* fix bug

* update ignores

* update ignore

* update stats
This commit is contained in:
Matthias Mair authored and GitHub committed 2026-11-24 13:40:46 +11:00
1 parent c07e03c745
commit 06f9d6c298
43 files changed
+399 -138

No files matched your search

+2
View File
@@ -183,7 +183,9 @@ def hook_config(site_url: Optional[str] = None) -> dict:
spec = importlib.util.spec_from_file_location(
'inventree_docs_hooks', HERE.joinpath('docs', 'hooks.py')
)
assert spec is not None
hooks = importlib.util.module_from_spec(spec)
assert spec.loader is not None
spec.loader.exec_module(hooks)
_hook_config = hooks.on_config({'site_url': site_url})