Skip to content

Commit

Permalink
Merge pull request #219 from OCA/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
sbidoul authored Oct 16, 2022
2 parents d6b4161 + aa39f17 commit 0d64b24
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ default_language_version:
python: python3
repos:
- repo: https://github.com/psf/black
rev: 22.8.0
rev: 22.10.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down Expand Up @@ -34,7 +34,7 @@ repos:
args: [--extend-ignore=F401] # ignore imported unused in __init__.py
files: __init__.py
- repo: https://github.com/asottile/pyupgrade
rev: v2.38.2
rev: v3.1.0
hooks:
- id: pyupgrade
- repo: https://github.com/asottile/seed-isort-config
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import io
import os

from setuptools import find_packages, setup

here = os.path.abspath(os.path.dirname(__file__))
with io.open(os.path.join(here, "README.rst"), encoding="utf-8") as f:
with open(os.path.join(here, "README.rst"), encoding="utf-8") as f:
long_description = f.read()


Expand Down
2 changes: 1 addition & 1 deletion src/oca_github_bot/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def get_manifest(addon_dir):

def set_manifest_version(addon_dir, version):
manifest_path = get_manifest_path(addon_dir)
with open(manifest_path, "r") as f:
with open(manifest_path) as f:
manifest = f.read()
manifest = MANIFEST_VERSION_RE.sub(r"\g<pre>" + version + r"\g<post>", manifest)
with open(manifest_path, "w") as f:
Expand Down

0 comments on commit 0d64b24

Please sign in to comment.