From 413951eefe7060d1328560b5d550d86e18d42b79 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Nov 2026 19:33:05 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.14.11 → v0.17.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.11...v0.17.3) - [github.com/codespell-project/codespell: v2.4.1 → v2.4.3](https://github.com/codespell-project/codespell/compare/v2.4.1...v2.4.3) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b4cf19d..d412629 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,13 +20,13 @@ repos: - id: sort-simple-yaml - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.14.11' + rev: 'v0.17.3' hooks: - id: ruff-check args: [--fix, --exit-non-zero-on-fix] - id: ruff-format - repo: https://github.com/codespell-project/codespell - rev: v2.4.1 + rev: v2.4.3 hooks: - id: codespell additional_dependencies: ["tomli"] From 3d8a8f8ea0860ab57d7a09120fc7264e7f957ee5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saugat=20Pachhai=20=28=E0=A4=B8=E0=A5=8C=E0=A4=97=E0=A4=BE?= =?UTF-8?q?=E0=A4=A4=29?= Date: Fri, 6 Nov 2026 15:08:50 +0545 Subject: [PATCH 2/2] fix ruff errors --- src/dvc_objects/fs/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dvc_objects/fs/base.py b/src/dvc_objects/fs/base.py index 29e1b56..0a54878 100644 --- a/src/dvc_objects/fs/base.py +++ b/src/dvc_objects/fs/base.py @@ -1,5 +1,5 @@ import asyncio -import datetime +import datetime as dt import logging import ntpath import os @@ -798,10 +798,10 @@ def get_file(rpath, lpath, **kwargs): def ukey(self, path: AnyFSPath) -> str: return self.fs.ukey(path) - def created(self, path: AnyFSPath) -> datetime.datetime: + def created(self, path: AnyFSPath) -> dt.datetime: return self.fs.created(path) - def modified(self, path: AnyFSPath) -> datetime.datetime: + def modified(self, path: AnyFSPath) -> dt.datetime: return self.fs.modified(path) def sign(self, path: AnyFSPath, expiration: int = 100, **kwargs: Any) -> str: