Skip to content

Commit

Permalink
chore: sync pybuild-deps logger with pip-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-fs committed Oct 24, 2023
1 parent f32d8e6 commit 03d9c03
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 20 deletions.
59 changes: 40 additions & 19 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ sphinx-click = ">=3.0.2"
typeguard = ">=2.13.3"
xdoctest = { extras = ["colors"], version = ">=0.15.10" }
myst-parser = { version = ">=0.16.1" }
ruff = "^0.0.235"
ruff = "^0.1.1"
pytest-mock = "^3.10.0"
ipykernel = "^6.25.2"

Expand Down
3 changes: 3 additions & 0 deletions src/pybuild_deps/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from typing import Any

import click
from piptools.logging import log as piptools_logger

logging.basicConfig()
_logger = logging.getLogger("pybuild-deps")
Expand Down Expand Up @@ -37,6 +38,8 @@ def verbosity(self, value):
_logger.setLevel(logging.INFO)
if self._verbosity >= 1:
_logger.setLevel(logging.DEBUG)
# keep piptools logger verbosity in sync with ours
piptools_logger.verbosity = value

def log(self, level: int, message: str, *args: Any, **kwargs: Any) -> None:
if self.as_library:
Expand Down

0 comments on commit 03d9c03

Please sign in to comment.