Commit 3a22326b authored by Laurent Peuch's avatar Laurent Peuch
Browse files

feat: migrate to loguru

parent 88ab40608bf9
......@@ -2,19 +2,17 @@ import os
import json
import hglib
import gitlab
import logging
import tempfile
import subprocess
from time import sleep
from loguru import logger
from rdflib import ConjunctiveGraph
from pathlib import Path
from heptalab import download_heptapod_trig, download_logigraphe_trig
FORGE_HEPTAPOD = "https://forge.extranet.logilab.fr/"
logger = logging.getLogger("cube_doctor")
class EmptyCubeQueryResult(Exception):
...
......
import logging
import argparse
import subprocess
from loguru import logger
from cube_doctor import EmptyCubeQueryResult
from cube_doctor.transforms.add_tox import AddTox # noqa
......@@ -21,9 +22,6 @@ from cube_doctor.transforms.run_script import RunScript
from cube_doctor.transforms.regenerate_gitlab_ci import RegenerateGitlabCI
from cube_doctor.transforms.rebase_all import RebaseAllMyMRs
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("cube_doctor")
def hg_command(dir, command):
# look for inspiration at
......
......@@ -2,14 +2,12 @@
import os
import yaml
import logging
from loguru import logger
from tox.config import parseconfig
from cube_doctor import Command
logger = logging.getLogger("cube_doctor")
PYTEST_CAPTURE_DEPRECATEDWARNINGS_PACKAGE_URI = (
"git+https://github.com/psycojoker/pytest-capture-deprecatedwarnings"
)
......@@ -150,7 +148,7 @@ def add_pytest_deprecated_warnings_to_gitlabci(repo):
"paths" in job["artifacts"]
and f"{rule}-deprecated-warnings.json" in job["artifacts"]["paths"]
):
logging.info(
logger.info(
f"artifact rule for {rule}-deprecated-warnings.json is "
"already here in .gitlab-ci.yml"
)
......
import logging
import subprocess
from cube_doctor import NoMRCommand
from loguru import logger
logger = logging.getLogger("cube_doctor")
from cube_doctor import NoMRCommand
class RebaseAllMyMRs(NoMRCommand):
......
......@@ -9,3 +9,4 @@ freezegun
hg+https://forge.extranet.logilab.fr/open-source/heptalab
requests
jinja2
loguru
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment