mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-24 16:57:30 +00:00
bump ty (#13165)
* 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:
1 parent
c07e03c745
commit
06f9d6c298
43 files changed
+399
-138
No files matched your search
@@ -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})
|
||||
|
||||
|
||||
Reference in new issue
Block a user