Skip to content

Commit 267afc6

Browse files
committed
Check documentation links
1 parent a303fc4 commit 267afc6

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

x.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
from pathlib import Path
88

99

10-
def run(*args):
11-
subprocess.run([*args], check=True)
10+
def run(*args, env=None):
11+
if env is not None:
12+
env = {**os.environ, **env}
13+
subprocess.run([*args], check=True, env=env)
1214

1315

1416
def can_run(*args):
@@ -55,6 +57,7 @@ def default(args):
5557

5658

5759
def check(args):
60+
run("cargo", "doc", "--no-deps", env={"RUSTDOCFLAGS": "--deny warnings"})
5861
run("cargo", "fmt", "--", "--check")
5962
run("cargo", "clippy", "--all-features", "--tests", "--", *DENY_WARNINGS)
6063

0 commit comments

Comments
 (0)