basedpyright: Treat warnings as errors

This commit is contained in:
ItsDrike 2024-07-13 12:59:17 +02:00
parent 824d6273a6
commit 0855c6fbb3
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
3 changed files with 5 additions and 5 deletions

View file

@ -46,4 +46,4 @@ jobs:
run: slotscheck -m mcproto
- name: Run basedpyright type checker
run: basedpyright .
run: basedpyright --warnings .

View file

@ -36,9 +36,9 @@ repos:
- repo: local
hooks:
- id: basedpyright
name: BasedPyright
description: Run BasedPyright type checker
entry: poetry run basedpyright
name: Based Pyright
description: Run basedpyright type checker
entry: poetry run basedpyright --warnings
language: system
types: [python]
pass_filenames: false # pyright runs for the entire project, it can't run for single files

View file

@ -204,7 +204,7 @@ cmd = "pytest -v --failed-first"
help = "Run pytest tests"
[tool.poe.tasks.pyright]
cmd = "basedpyright ."
cmd = "basedpyright --warnings ."
help = "Run BasedPyright type-checker"
[tool.poe.tasks.retest]