Skip to content
Merged
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
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