Skip to content

Commit 4819e71

Browse files
[pre-commit.ci] pre-commit autoupdate (#276)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.13 → v0.2.2](astral-sh/ruff-pre-commit@v0.1.13...v0.2.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>
1 parent 454a522 commit 4819e71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
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.1.13'
23+
rev: 'v0.2.2'
2424
hooks:
2525
- id: ruff
2626
args: [--fix, --exit-non-zero-on-fix]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ def _describe(
842842
if revision and revision not in rev_mapping:
843843
rev_mapping[revision] = ref
844844
for rev in revs:
845-
results[rev] = rev_mapping.get(rev, None)
845+
results[rev] = rev_mapping.get(rev)
846846
return results
847847

848848
def diff(self, rev_a: str, rev_b: str, binary=False) -> str:

0 commit comments

Comments
 (0)