Skip to content

Commit 6ecc911

Browse files
chore: pre-commit autoupdate (#155)
* chore: pre-commit autoupdate updates: - [github.com/rbubley/mirrors-prettier: v3.4.2 → v3.5.3](rbubley/mirrors-prettier@v3.4.2...v3.5.3) - [github.com/streetsidesoftware/cspell-cli: v8.16.1 → v8.17.3](streetsidesoftware/cspell-cli@v8.16.1...v8.17.3) - [github.com/codespell-project/codespell: v2.3.0 → v2.4.1](codespell-project/codespell@v2.3.0...v2.4.1) - [github.com/astral-sh/ruff-pre-commit: v0.8.2 → v0.9.9](astral-sh/ruff-pre-commit@v0.8.2...v0.9.9) - [github.com/psf/black: 24.10.0 → 25.1.0](psf/black@24.10.0...25.1.0) - [github.com/pre-commit/mirrors-mypy: v1.13.0 → v1.15.0](pre-commit/mirrors-mypy@v1.13.0...v1.15.0) - [github.com/RobertCraigie/pyright-python: v1.1.390 → v1.1.396](RobertCraigie/pyright-python@v1.1.390...v1.1.396) - [github.com/pycqa/pylint: v3.3.2 → v3.3.4](pylint-dev/pylint@v3.3.2...v3.3.4) * chore: auto fixes from pre-commit.com hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 2b8758d commit 6ecc911

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ repos:
1414
- id: check-useless-excludes
1515
- repo: https://github.com/rbubley/mirrors-prettier
1616
# keep it before yamllint
17-
rev: v3.4.2
17+
rev: v3.5.3
1818
hooks:
1919
- id: prettier
2020
- repo: https://github.com/streetsidesoftware/cspell-cli
21-
rev: v8.16.1
21+
rev: v8.17.3
2222
hooks:
2323
- id: cspell
2424
# entry: codespell --relative
@@ -36,7 +36,7 @@ repos:
3636
- id: debug-statements
3737
language_version: python3
3838
- repo: https://github.com/codespell-project/codespell
39-
rev: v2.3.0
39+
rev: v2.4.1
4040
hooks:
4141
- id: codespell
4242

@@ -54,7 +54,7 @@ repos:
5454
hooks:
5555
- id: toml-sort-fix
5656
- repo: https://github.com/astral-sh/ruff-pre-commit
57-
rev: v0.8.2
57+
rev: v0.9.9
5858
hooks:
5959
- id: ruff
6060
args:
@@ -64,11 +64,11 @@ repos:
6464
# - id: ruff-format # must be after ruff
6565
# types_or: [python, pyi]
6666
- repo: https://github.com/psf/black # must be after ruff
67-
rev: 24.10.0
67+
rev: 25.1.0
6868
hooks:
6969
- id: black
7070
- repo: https://github.com/pre-commit/mirrors-mypy
71-
rev: v1.13.0
71+
rev: v1.15.0
7272
hooks:
7373
- id: mypy
7474
# empty args needed in order to match mypy cli behavior
@@ -77,14 +77,14 @@ repos:
7777
- pytest>=6.1.2
7878
- enrich>=1.2.5
7979
- repo: https://github.com/RobertCraigie/pyright-python
80-
rev: v1.1.390
80+
rev: v1.1.396
8181
hooks:
8282
- id: pyright
8383
additional_dependencies:
8484
- pytest>=6.1.2
8585
- enrich>=1.2.5
8686
- repo: https://github.com/pycqa/pylint
87-
rev: v3.3.2
87+
rev: v3.3.4
8888
hooks:
8989
- id: pylint
9090
additional_dependencies:

src/subprocess_tee/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ async def _stream_subprocess( # noqa: C901
101101
def tee_func(line: bytes, sink: list[str], pipe: Any | None) -> None:
102102
line_str = line.decode("utf-8").rstrip()
103103
sink.append(line_str)
104-
if not kwargs.get("quiet", False):
104+
if not kwargs.get("quiet"):
105105
if pipe and hasattr(pipe, "write"):
106106
print(line_str, file=pipe)
107107
else:
@@ -186,7 +186,7 @@ def run(
186186

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

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

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

0 commit comments

Comments
 (0)