mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-19 07:18:27 +01:00
The code are wrapped due to us using line-length=79 before, but now some of the code can easily fit in 88 chars. The formatter did not change this automatically when we changed line-length, because of magic trailing commas that gets added when they turn into multiple lines. Black/ruff wrapping them in parens and splitting them into multiple lines was making it difficult to read.
15 lines
460 B
Python
15 lines
460 B
Python
# ruff: noqa: N999
|
|
|
|
from PyInstaller.utils.hooks import collect_submodules, is_module_or_submodule
|
|
|
|
# Celery dynamically imports most celery internals at runtime
|
|
# pyinstaller hook must expose all modules loaded by
|
|
# kombu.utils.imports:symbol_by_name()
|
|
_EXCLUDES = ("celery.bin", "celery.contrib")
|
|
hiddenimports = collect_submodules(
|
|
"celery",
|
|
filter=lambda name: not any(
|
|
is_module_or_submodule(name, module) for module in _EXCLUDES
|
|
),
|
|
)
|