basedpyright: Treat warnings as errors
This commit is contained in:
parent
824d6273a6
commit
0855c6fbb3
2
.github/workflows/validation.yml
vendored
2
.github/workflows/validation.yml
vendored
|
@ -46,4 +46,4 @@ jobs:
|
|||
run: slotscheck -m mcproto
|
||||
|
||||
- name: Run basedpyright type checker
|
||||
run: basedpyright .
|
||||
run: basedpyright --warnings .
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue