Skip to content

Commit

Permalink
fix: use logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Alviner committed Sep 1, 2023
1 parent 0a76e11 commit 57465fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from contextlib import chdir
import logging
from pathlib import Path

import nox
import requests


def download(url: str, dest: Path):
print(f"Downloading {url}")
logging.info(f"Downloading %r", url)
response = requests.get(url)
response.raise_for_status()
with open(dest, "wb") as fp:
Expand All @@ -23,7 +23,7 @@ def docs(session: nox.Session):
plantuml = (Path("contrib") / "plantuml.jar").resolve()

def plantuml_render(*filenames):
with chdir(str(docs / "source")):
with session.chdir(str(docs / "source")):
session.run(
"java", "-jar", str(plantuml), "-tsvg",
"-quiet", "-progress", "-overwrite", "-nometadata",
Expand Down

0 comments on commit 57465fd

Please sign in to comment.