Skip to content

Commit

Permalink
[pyright updated to 1.1.305] Update Version (#172)
Browse files Browse the repository at this point in the history
* Pyright NPM Package update to 1.1.305

* Fix lint

* Fix formatting

---------

Co-authored-by: RobertCraigie <RobertCraigie@users.noreply.github.com>
  • Loading branch information
RobertCraigie and RobertCraigie authored Apr 27, 2023
1 parent e09816e commit e8bc9a1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ You can also setup pyright to run automatically before each commit by setting up
```yaml
repos:
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.304
rev: v1.1.305
hooks:
- id: pyright
```
Expand Down
4 changes: 2 additions & 2 deletions pyright/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = '1.1.304'
__pyright_version__ = '1.1.304'
__version__ = '1.1.305'
__pyright_version__ = '1.1.305'
4 changes: 3 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ def tmp_path_fixture(tmp_path: Path) -> Iterator[Path]:

@pytest.fixture(name='npx', scope='session')
def npx_fixture() -> str:
return str(node._ensure_available('npx').path) # pyright: reportPrivateUsage=false
return str(
node._ensure_available('npx').path # pyright: ignore[reportPrivateUsage]
)


@pytest.fixture(autouse=True)
Expand Down
8 changes: 4 additions & 4 deletions tests/test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ def test_target_version(
output: bytes,
version: Tuple[int, ...],
) -> None:
fake_process.register_subprocess(
fake_process.register_subprocess( # pyright: ignore[reportUnknownMemberType]
[npx, "--version"], stdout=output
) # pyright: reportUnknownMemberType=false
)
assert node.version('npx') == version


Expand All @@ -48,9 +48,9 @@ def test_target_version_not_found(
fake_process: FakeProcess,
capsys: 'CaptureFixture[str]',
) -> None:
fake_process.register_subprocess(
fake_process.register_subprocess( # pyright: ignore[reportUnknownMemberType]
[npx, "--version"], stdout='hello world'
) # pyright: reportUnknownMemberType=false
)

with pytest.raises(pyright.errors.VersionCheckFailed) as exc:
node.version('npx')
Expand Down

0 comments on commit e8bc9a1

Please sign in to comment.