Skip to content

Commit

Permalink
Use shutil.rmtree over shelling out to rm -rf in noxfile (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
FollowTheProcess committed Dec 22, 2021
1 parent 441b2bc commit f4037b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion noxfile.py
Expand Up @@ -16,6 +16,7 @@
import functools
import os
import platform
import shutil
import sys

import nox
Expand Down Expand Up @@ -118,7 +119,7 @@ def docs(session):
doctrees, html = map(
functools.partial(os.path.join, output_dir), ["doctrees", "html"]
)
session.run("rm", "-rf", output_dir, external=True)
shutil.rmtree(output_dir, ignore_errors=True)
session.install("-r", "requirements-test.txt")
session.install(".")
session.cd("docs")
Expand Down

0 comments on commit f4037b2

Please sign in to comment.