Skip to content

Commit

Permalink
Merge e77eb4e into 78d71a9
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Sep 14, 2021
2 parents 78d71a9 + e77eb4e commit a29dcb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,21 @@ repos:
files: ^repo_helper/.*\.py$

- repo: https://github.com/domdfcoding/flake2lint
rev: v0.4.0
rev: v0.4.1
hooks:
- id: flake2lint
files: ^(?!repo_helper/files/linting\.py).*$

- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.8.0
rev: v1.9.0
hooks:
- id: python-no-eval
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal

- repo: https://github.com/asottile/pyupgrade
rev: v2.18.2
rev: v2.26.0
hooks:
- id: pyupgrade
args:
Expand All @@ -70,7 +70,7 @@ repos:
- id: forbid-crlf

- repo: https://github.com/repo-helper/formate
rev: v0.4.5
rev: v0.4.9
hooks:
- id: formate
exclude: ^(repo_helper/templates/.*|doc-source/conf|__pkginfo__|make_conda_recipe|setup)\.(_)?py$
Expand Down
2 changes: 1 addition & 1 deletion repo_helper/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def bump(self, new_version: Version, commit: Optional[bool], message: str):

dulwich_repo = Repo(self.repo.target_repo)

if f"v{new_version_str}".encode("UTF-8") in dulwich_repo.refs.as_dict(b"refs/tags"):
if f"v{new_version_str}".encode() in dulwich_repo.refs.as_dict(b"refs/tags"):
raise abort(f"The tag 'v{new_version_str}' already exists!")

bumpversion_config = self.get_bumpversion_config(str(self.current_version), new_version_str)
Expand Down

0 comments on commit a29dcb9

Please sign in to comment.