Skip to content

Commit

Permalink
Run pyright twice, the second time to ensure nox considers problems a…
Browse files Browse the repository at this point in the history
… failure
  • Loading branch information
AndydeCleyre committed Apr 17, 2024
1 parent 91dc5ce commit 5dd1b71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def typecheck(session):
"""Check types."""
session.install('-U', '.[dev]')
session.run('sh', '-c', 'pyright --outputjson 2>/dev/null | json2nt', external=True)
session.run('pyright', '--warnings')


@nox.session(python=[DEFAULT_PYTHON])
Expand Down

0 comments on commit 5dd1b71

Please sign in to comment.