Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#276)
Browse files Browse the repository at this point in the history
* [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>
  • Loading branch information
pre-commit-ci[bot] authored Feb 28, 2024
1 parent 454a522 commit 4819e71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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.1.13'
rev: 'v0.2.2'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
2 changes: 1 addition & 1 deletion src/scmrepo/git/backend/dulwich/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ def _describe(
if revision and revision not in rev_mapping:
rev_mapping[revision] = ref
for rev in revs:
results[rev] = rev_mapping.get(rev, None)
results[rev] = rev_mapping.get(rev)
return results

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

0 comments on commit 4819e71

Please sign in to comment.