Skip to content

Commit a96c366

Browse files
[pre-commit.ci] pre-commit autoupdate (#339)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.3.2](astral-sh/ruff-pre-commit@v0.2.2...v0.3.2) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent fb99c42 commit a96c366

File tree

8 files changed

+11
-6
lines changed

8 files changed

+11
-6
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repos:
2020
- id: sort-simple-yaml
2121
- id: trailing-whitespace
2222
- repo: https://github.com/astral-sh/ruff-pre-commit
23-
rev: 'v0.2.2'
23+
rev: 'v0.3.2'
2424
hooks:
2525
- id: ruff
2626
args: [--fix, --exit-non-zero-on-fix]

noxfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Automation using nox."""
2+
23
import glob
34
import os
45

src/scmrepo/asyn.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""DVC re-implementation of fsspec's dedicated async event loop."""
2+
23
import asyncio
34
import os
45
import threading

src/scmrepo/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Manages source control systems (e.g. Git) in DVC."""
2+
23
from contextlib import AbstractContextManager
34

45

src/scmrepo/git/backend/dulwich/asyncssh_vendor.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""asyncssh SSH vendor for Dulwich."""
2+
23
import asyncio
34
import os
45
from collections.abc import Coroutine, Iterator, Sequence
@@ -288,9 +289,9 @@ async def _run_command(
288289
from asyncssh.auth import MSG_USERAUTH_PK_OK, _ClientPublicKeyAuth
289290

290291
# pylint: disable=protected-access
291-
_ClientPublicKeyAuth._packet_handlers[
292-
MSG_USERAUTH_PK_OK
293-
] = _process_public_key_ok_gh
292+
_ClientPublicKeyAuth._packet_handlers[MSG_USERAUTH_PK_OK] = (
293+
_process_public_key_ok_gh
294+
)
294295

295296
try:
296297
conn = await asyncssh.connect(

src/scmrepo/git/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""git config convenience wrapper."""
2+
23
import logging
34
from abc import ABC, abstractmethod
45
from collections.abc import Iterator

src/scmrepo/git/credentials.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
Currently Dulwich supports only the `get` operation
2727
2828
"""
29+
2930
import locale
3031
import logging
3132
import os

src/scmrepo/git/lfs/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ def close(self):
9191
pass
9292

9393
@abstractmethod
94-
def _get_auth_header(self, *, upload: bool) -> dict:
95-
...
94+
def _get_auth_header(self, *, upload: bool) -> dict: ...
9695

9796
async def _batch_request(
9897
self,

0 commit comments

Comments
 (0)