Skip to content

Commit 253d18f

Browse files
pre-commit-ci[bot]BradyJ27
authored andcommitted
[pre-commit.ci] pre-commit autoupdate (iterative#10238)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.11 → v0.1.14](astral-sh/ruff-pre-commit@v0.1.11...v0.1.14) * [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 3104d90 commit 253d18f

File tree

7 files changed

+10
-12
lines changed

7 files changed

+10
-12
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
- id: sort-simple-yaml
2323
- id: trailing-whitespace
2424
- repo: https://github.com/astral-sh/ruff-pre-commit
25-
rev: 'v0.1.11'
25+
rev: 'v0.1.14'
2626
hooks:
2727
- id: ruff
2828
args: [--fix, --exit-non-zero-on-fix]

dvc/annotations.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Annotation:
1313
PARAM_META: ClassVar[str] = "meta"
1414

1515
desc: Optional[str] = None
16-
type: Optional[str] = None # noqa: A003
16+
type: Optional[str] = None
1717
labels: List[str] = field(default_factory=list)
1818
meta: Dict[str, Any] = field(default_factory=dict)
1919

@@ -31,7 +31,7 @@ class Artifact:
3131

3232
path: str
3333
desc: Optional[str] = None
34-
type: Optional[str] = None # noqa: A003
34+
type: Optional[str] = None
3535
labels: List[str] = field(default_factory=list)
3636
meta: Dict[str, Any] = field(default_factory=dict)
3737

dvc/commands/ls/ls_colors.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def _load(self, lscolors):
2020
else:
2121
self._codes[code] = color
2222

23-
def format(self, entry): # noqa: A003
23+
def format(self, entry):
2424
text = entry["path"]
2525

2626
if entry.get("isout", False) and "out" in self._codes:

dvc/logger.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __init__(self, log_colors: bool = True, show_traceback: bool = False) -> Non
9191
self.log_colors = log_colors
9292
self.show_traceback = show_traceback
9393

94-
def format(self, record) -> str: # noqa: A003, C901
94+
def format(self, record) -> str: # noqa: C901
9595
record.message = record.getMessage()
9696
msg = self.formatMessage(record)
9797

dvc/repo/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def check_graph(
306306
new.check_graph()
307307

308308
@staticmethod
309-
def open(url: Optional[str], *args, **kwargs) -> "Repo": # noqa: A003
309+
def open(url: Optional[str], *args, **kwargs) -> "Repo":
310310
from .open_repo import open_repo
311311

312312
return open_repo(url, *args, **kwargs)

dvc/repo/experiments/serialize.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,14 @@ def contains_error(self) -> bool:
112112

113113
@dataclass(frozen=True)
114114
class ExpDep:
115-
hash: Optional[str] # noqa: A003
115+
hash: Optional[str]
116116
size: Optional[int]
117117
nfiles: Optional[int]
118118

119119

120120
@dataclass(frozen=True)
121121
class ExpOut:
122-
hash: Optional[str] # noqa: A003
122+
hash: Optional[str]
123123
size: Optional[int]
124124
nfiles: Optional[int]
125125
use_cache: bool
@@ -129,7 +129,7 @@ class ExpOut:
129129
@dataclass(frozen=True)
130130
class SerializableError:
131131
msg: str
132-
type: str = "" # noqa: A003
132+
type: str = ""
133133

134134
def dumpd(self) -> Dict[str, Any]:
135135
return asdict(self)

dvc/ui/__init__.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ def __init__(
5757
}
5858
self.theme = defaultdict(lambda: defaults or {}, theme)
5959

60-
def format( # noqa: A003
61-
self, message: str, style: Optional[str] = None, **kwargs
62-
) -> str:
60+
def format(self, message: str, style: Optional[str] = None, **kwargs) -> str:
6361
from dvc.utils import colorize
6462

6563
return colorize(message, **self.theme[style])

0 commit comments

Comments
 (0)