Noms plus clairs : snippets/, scripts de test numérotés, verifier_ollama.py
- base_connaissances/ → snippets/ (corpus/ → textes/, instructions.md → consignes_redaction.md, decoupage.py → fichiers.py, importer.py → envoyer.py) ; python3 -m snippets.envoyer. - instance-de-test/ : 1_demarrer.sh, 2_creer_boite_et_cle.py, 3_brancher_ia.py, 4_essayer_brouillons.py, voir_empreintes.sh, connexion_admin.py. - ollama/verifier.py → ollama/verifier_ollama.py ; tests, tâches VS Code et docs alignés. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3e0b5d03a3
commit
10ed887417
142 files changed
+89
-85
No files matched your search
@@ -12,7 +12,7 @@ OLLAMA = Path(__file__).resolve().parents[1] / "ollama"
|
||||
COMPOSE = OLLAMA / "compose.yml"
|
||||
DOCKERFILE = OLLAMA / "Dockerfile"
|
||||
sys.path.insert(0, str(OLLAMA))
|
||||
from verifier import verifier # noqa: E402
|
||||
from verifier_ollama import verifier # noqa: E402
|
||||
|
||||
|
||||
class FauxOllama:
|
||||
@@ -83,7 +83,7 @@ class TestVerifier(unittest.TestCase):
|
||||
|
||||
class TestCompatibilite(unittest.TestCase):
|
||||
def test_verifier_lisible_par_un_vieux_python(self): # le Python du serveur est inconnu (3.8, 3.9…)
|
||||
texte = (OLLAMA / "verifier.py").read_text()
|
||||
texte = (OLLAMA / "verifier_ollama.py").read_text()
|
||||
arbre = ast.parse(texte)
|
||||
futur = any(isinstance(n, ast.ImportFrom) and n.module == "__future__"
|
||||
and any(a.name == "annotations" for a in n.names) for n in arbre.body)
|
||||
|
||||
Reference in new issue
Block a user