Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: pre-commit autoupdate #155

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
hooks:
- id: prettier
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.16.1
rev: v8.17.0
hooks:
- id: cspell
# entry: codespell --relative
Expand Down Expand Up @@ -54,7 +54,7 @@ repos:
hooks:
- id: toml-sort-fix
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.2
rev: v0.8.6
hooks:
- id: ruff
args:
Expand All @@ -68,7 +68,7 @@ repos:
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
rev: v1.14.1
hooks:
- id: mypy
# empty args needed in order to match mypy cli behavior
Expand All @@ -77,14 +77,14 @@ repos:
- pytest>=6.1.2
- enrich>=1.2.5
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.390
rev: v1.1.391
hooks:
- id: pyright
additional_dependencies:
- pytest>=6.1.2
- enrich>=1.2.5
- repo: https://github.com/pycqa/pylint
rev: v3.3.2
rev: v3.3.3
hooks:
- id: pylint
additional_dependencies:
Expand Down
4 changes: 2 additions & 2 deletions src/subprocess_tee/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async def _stream_subprocess( # noqa: C901
def tee_func(line: bytes, sink: list[str], pipe: Any | None) -> None:
line_str = line.decode("utf-8").rstrip()
sink.append(line_str)
if not kwargs.get("quiet", False):
if not kwargs.get("quiet"):
if pipe and hasattr(pipe, "write"):
print(line_str, file=pipe)
else:
Expand Down Expand Up @@ -186,7 +186,7 @@ def run(

check = kwargs.get("check", False)

if kwargs.get("echo", False):
if kwargs.get("echo"):
print(f"COMMAND: {cmd}") # noqa: T201

result = asyncio.run(_stream_subprocess(cmd, **kwargs))
Expand Down