Skip to content

Commit 3b59456

Browse files
[pre-commit.ci] pre-commit autoupdate (#358)
updates: - [github.com/astral-sh/ruff-pre-commit: v0.4.3 → v0.4.4](astral-sh/ruff-pre-commit@v0.4.3...v0.4.4) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent c12c7bf commit 3b59456

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.pre-commit-config.yaml

+1-1
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.4.3'
23+
rev: 'v0.4.4'
2424
hooks:
2525
- id: ruff
2626
args: [--fix, --exit-non-zero-on-fix]

pyproject.toml

+6-4
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ ignore_missing_imports = true
125125
ignore-words-list = "cachable, keypair"
126126

127127
[tool.ruff]
128+
output-format = "full"
129+
show-fixes = true
130+
131+
[tool.ruff.lint]
128132
ignore = [
129133
"S101", # assert
130134
"PLR2004", # magic-value-comparison
@@ -180,10 +184,8 @@ select = [
180184
"W", # pycodestyle - Warning
181185
"YTT", # flake8-2020
182186
]
183-
show-source = true
184-
show-fixes = true
185187

186-
[tool.ruff.per-file-ignores]
188+
[tool.ruff.lint.per-file-ignores]
187189
"noxfile.py" = ["D", "PTH"]
188190
"tests/**" = ["S", "ARG001", "ARG002", "ANN"]
189191
"docs/**" = ["INP"]
@@ -199,5 +201,5 @@ strict = true
199201
[tool.ruff.lint.isort]
200202
known-first-party = ["scmrepo"]
201203

202-
[tool.ruff.pylint]
204+
[tool.ruff.lint.pylint]
203205
max-args = 10

src/scmrepo/git/backend/pygit2/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ def status(
951951
def iter_remote_refs(self, url: str, base: Optional[str] = None, **kwargs):
952952
raise NotImplementedError
953953

954-
def merge( # noqa: C901
954+
def merge( # noqa: C901, PLR0912
955955
self,
956956
rev: str,
957957
commit: bool = True,

0 commit comments

Comments
 (0)