Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#339)
Browse files Browse the repository at this point in the history
* [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>
  • Loading branch information
pre-commit-ci[bot] authored Mar 13, 2024
1 parent fb99c42 commit a96c366
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
- id: sort-simple-yaml
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.2.2'
rev: 'v0.3.2'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Automation using nox."""

import glob
import os

Expand Down
1 change: 1 addition & 0 deletions src/scmrepo/asyn.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""DVC re-implementation of fsspec's dedicated async event loop."""

import asyncio
import os
import threading
Expand Down
1 change: 1 addition & 0 deletions src/scmrepo/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Manages source control systems (e.g. Git) in DVC."""

from contextlib import AbstractContextManager


Expand Down
7 changes: 4 additions & 3 deletions src/scmrepo/git/backend/dulwich/asyncssh_vendor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""asyncssh SSH vendor for Dulwich."""

import asyncio
import os
from collections.abc import Coroutine, Iterator, Sequence
Expand Down Expand Up @@ -288,9 +289,9 @@ async def _run_command(
from asyncssh.auth import MSG_USERAUTH_PK_OK, _ClientPublicKeyAuth

# pylint: disable=protected-access
_ClientPublicKeyAuth._packet_handlers[
MSG_USERAUTH_PK_OK
] = _process_public_key_ok_gh
_ClientPublicKeyAuth._packet_handlers[MSG_USERAUTH_PK_OK] = (
_process_public_key_ok_gh
)

try:
conn = await asyncssh.connect(
Expand Down
1 change: 1 addition & 0 deletions src/scmrepo/git/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""git config convenience wrapper."""

import logging
from abc import ABC, abstractmethod
from collections.abc import Iterator
Expand Down
1 change: 1 addition & 0 deletions src/scmrepo/git/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
Currently Dulwich supports only the `get` operation
"""

import locale
import logging
import os
Expand Down
3 changes: 1 addition & 2 deletions src/scmrepo/git/lfs/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ def close(self):
pass

@abstractmethod
def _get_auth_header(self, *, upload: bool) -> dict:
...
def _get_auth_header(self, *, upload: bool) -> dict: ...

async def _batch_request(
self,
Expand Down

0 comments on commit a96c366

Please sign in to comment.