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
|
run: slotscheck -m mcproto
|
||||||
|
|
||||||
- name: Run basedpyright type checker
|
- name: Run basedpyright type checker
|
||||||
run: basedpyright .
|
run: basedpyright --warnings .
|
||||||
|
|
|
@ -37,8 +37,8 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: basedpyright
|
- id: basedpyright
|
||||||
name: Based Pyright
|
name: Based Pyright
|
||||||
description: Run BasedPyright type checker
|
description: Run basedpyright type checker
|
||||||
entry: poetry run basedpyright
|
entry: poetry run basedpyright --warnings
|
||||||
language: system
|
language: system
|
||||||
types: [python]
|
types: [python]
|
||||||
pass_filenames: false # pyright runs for the entire project, it can't run for single files
|
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"
|
help = "Run pytest tests"
|
||||||
|
|
||||||
[tool.poe.tasks.pyright]
|
[tool.poe.tasks.pyright]
|
||||||
cmd = "basedpyright ."
|
cmd = "basedpyright --warnings ."
|
||||||
help = "Run BasedPyright type-checker"
|
help = "Run BasedPyright type-checker"
|
||||||
|
|
||||||
[tool.poe.tasks.retest]
|
[tool.poe.tasks.retest]
|
||||||
|
|
Loading…
Reference in a new issue