Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: root logger use found by ruff LOG
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Nov 12, 2025
commit faec090ad3c08b3c07a9fdfbeba301f3fd6e7019
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,20 @@ extend-select = [
"F",
"FA", # flake8-future-annotations
"FLY", # flynt
"FURB", # refurb
"G", # flake8-logging-format
"I", # isort
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
"N", # pep8-naming
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PYI", # flake8-pyi
"Q", # flake8-quotes
"RSE", # flake8-raise
"RUF", # Ruff-specific rules
"SLOT", # flake8-slots
"T10", # flake8-debugger
Expand Down
4 changes: 3 additions & 1 deletion src/packaging/pylock.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
else:
from typing_extensions import Self

logger = logging.getLogger(__name__)

__all__ = [
"Package",
"PackageArchive",
Expand Down Expand Up @@ -611,7 +613,7 @@ def _from_dict(cls, d: Mapping[str, Any]) -> Self:
f"pylock version {pylock.lock_version} is not supported"
)
if pylock.lock_version > Version("1.0"):
logging.warning(
logger.warning(
"pylock minor version %s is not supported", pylock.lock_version
)
return pylock
Expand Down
Loading