From 9b1d7f9f01e4f64f1316b846ffe9056eee9bff57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Thu, 2 May 2024 14:20:40 +0200 Subject: [PATCH] pre-commit autoupdate --- .pre-commit-config.yaml | 4 ++-- src/hatch_odoo/build_hook.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0d6b570..d740973 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ default_language_version: python: python3 repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: check-toml - id: check-yaml @@ -10,7 +10,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.1.3 + rev: v0.4.2 hooks: - id: ruff args: [ --fix, --exit-non-zero-on-fix ] diff --git a/src/hatch_odoo/build_hook.py b/src/hatch_odoo/build_hook.py index 184b971..74d0a2c 100644 --- a/src/hatch_odoo/build_hook.py +++ b/src/hatch_odoo/build_hook.py @@ -61,6 +61,6 @@ def initialize(self, version, build_data): pth_file.write(str(editable_path) + "\n") project_name = get_project_name(self.root) force_include_editable = build_data["force_include_editable"] - force_include_editable[ - pth_file.name - ] = f"{project_name}_editable_odoo_addons.pth" + force_include_editable[pth_file.name] = ( + f"{project_name}_editable_odoo_addons.pth" + )