Skip to content

Commit 8535d4b

Browse files
committed
map pytest warnings to errors so they will be caught by CI
1 parent 808e0eb commit 8535d4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

noxfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ def test(session):
4242
session.install(".[test]")
4343

4444
options = session.posargs
45-
session.run('pytest', '--ignore', 'examples/', '-v', *options)
45+
# -W=error raises pytest warnings to errors so they are caught by CI
46+
session.run('pytest', '--ignore', 'examples/', '-v', '-W=error', *options)
4647

4748

4849
@nox.session

0 commit comments

Comments
 (0)