943acbc573
Durcit la convention de nommage des projets (dérive constatée : 'Sliding Automation', 'code_versioning'... au lieu des formes canoniques). - trilium_api.py : projets_canoniques() lit le référentiel = valeurs du label projet sur les notes de type=projet (source unique, pas de constante en dur). Note-projet CodeVersioning créée (manquait). - mcp_server.py : _valider_projet() branché dans les 6 tools de création (add_decision/history/backlog, new_conversation, create_entite, add_skill). Refuse un projet non canonique (suggestion si faute) ou inconnu (renvoi au processus de création de projet). Ne verrouille pas si référentiel illisible. - lint_audit.py : VAL-nommage aligné sur le référentiel (attrape casse, espace ET snake_case ; l'ancien 'contient un espace' ratait code_versioning). - Données : 79 notes ré-étiquetées vers les 3 formes canoniques. Quality by design : l'erreur de nommage devient impossible à l'écriture, le Lint n'est plus que le filet de sécurité.
39 lines
1.5 KiB
Python
39 lines
1.5 KiB
Python
from ._monitor import TMonitor, TqdmSynchronisationWarning
|
|
from ._tqdm_pandas import tqdm_pandas
|
|
from .cli import main # TODO: remove in v5.0.0
|
|
from .gui import tqdm as tqdm_gui # TODO: remove in v5.0.0
|
|
from .gui import trange as tgrange # TODO: remove in v5.0.0
|
|
from .std import (
|
|
TqdmDeprecationWarning, TqdmExperimentalWarning, TqdmKeyError, TqdmMonitorWarning,
|
|
TqdmTypeError, TqdmWarning, tqdm, trange)
|
|
from .version import __version__
|
|
|
|
__all__ = ['tqdm', 'tqdm_gui', 'trange', 'tgrange', 'tqdm_pandas',
|
|
'tqdm_notebook', 'tnrange', 'main', 'TMonitor',
|
|
'TqdmTypeError', 'TqdmKeyError',
|
|
'TqdmWarning', 'TqdmDeprecationWarning',
|
|
'TqdmExperimentalWarning',
|
|
'TqdmMonitorWarning', 'TqdmSynchronisationWarning',
|
|
'__version__']
|
|
|
|
|
|
def tqdm_notebook(*args, **kwargs): # pragma: no cover
|
|
"""See tqdm.notebook.tqdm for full documentation"""
|
|
from warnings import warn
|
|
|
|
from .notebook import tqdm as _tqdm_notebook
|
|
warn("This function will be removed in tqdm==5.0.0\n"
|
|
"Please use `tqdm.notebook.tqdm` instead of `tqdm.tqdm_notebook`",
|
|
TqdmDeprecationWarning, stacklevel=2)
|
|
return _tqdm_notebook(*args, **kwargs)
|
|
|
|
|
|
def tnrange(*args, **kwargs): # pragma: no cover
|
|
"""Shortcut for `tqdm.notebook.tqdm(range(*args), **kwargs)`."""
|
|
from warnings import warn
|
|
|
|
from .notebook import trange as _tnrange
|
|
warn("Please use `tqdm.notebook.trange` instead of `tqdm.tnrange`",
|
|
TqdmDeprecationWarning, stacklevel=2)
|
|
return _tnrange(*args, **kwargs)
|