Skip to content

Commit

Permalink
feat: Write Poetry warnings to standard error
Browse files Browse the repository at this point in the history
  • Loading branch information
cjolowicz committed Jun 11, 2021
1 parent 8011ef5 commit 911c8e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/nox_poetry/poetry.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Poetry interface."""
import sys
from enum import Enum
from pathlib import Path
from typing import Any
Expand Down Expand Up @@ -100,6 +101,7 @@ def export(self) -> str:
def _stripwarnings(lines: Iterable[str]) -> Iterator[str]:
for line in lines:
if line.startswith("Warning:"):
print(line, file=sys.stderr)
continue
yield line

Expand Down

0 comments on commit 911c8e3

Please sign in to comment.