Skip to content

Commit

Permalink
Fix local pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeNaccarato committed Feb 1, 2024
1 parent 2b2c2bc commit a58232c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .tools/scripts/local_dev_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ def main():
config = loads(PYPROJECT.read_text("utf-8"))
# Write pyrightconfig.json
pyright = config["tool"]["pyright"]
data = dumps(add_pyright_includes(pyright, [Path("../boilercore/src")]), indent=2)
data = dumps(
add_pyright_includes(pyright, [".", Path("../boilercore/src")]), indent=2
)
PYRIGHTCONFIG.write_text(encoding="utf-8", data=f"{data}\n")
# Write pytest.ini
pytest = config["tool"]["pytest"]["ini_options"]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ reportOptionalIterable = "warning"
reportOptionalContextManager = "warning"
reportOptionalOperand = "warning"
reportTypedDictNotRequiredAccess = "warning"
reportPrivateImportUsage = "warning"
reportPrivateImportUsage = "none" # Flaky regarding "not exported"
reportUnboundVariable = "warning"
reportUnusedCoroutine = "none" # Handled by Ruff
reportFunctionMemberAccess = "warning"
Expand Down

0 comments on commit a58232c

Please sign in to comment.