From ff0cd42bfe7445787e4e69a4a8192d74b86ce059 Mon Sep 17 00:00:00 2001 From: Rivo Lalaina Date: Mon, 9 Dec 2024 10:03:50 +0300 Subject: [PATCH] [IMP][16.0] pre-commit : add black hook --- .docker_files/main/__manifest__.py | 22 +++++++++++----------- .pre-commit-config.yaml | 4 ++++ 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/.docker_files/main/__manifest__.py b/.docker_files/main/__manifest__.py index d42757e..d1dc1b1 100644 --- a/.docker_files/main/__manifest__.py +++ b/.docker_files/main/__manifest__.py @@ -2,16 +2,16 @@ # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). { - 'name': 'Main Module', - 'version': '1.0.0', - 'author': 'Numigi', - 'maintainer': 'Numigi', - 'website': 'https://www.numigi.com', - 'license': 'LGPL-3', - 'category': 'Other', - 'summary': 'Install all addons required for testing.', - 'depends': [ - 'base', + "name": "Main Module", + "version": "1.0.0", + "author": "Numigi", + "maintainer": "Numigi", + "website": "https://www.numigi.com", + "license": "LGPL-3", + "category": "Other", + "summary": "Install all addons required for testing.", + "depends": [ + "base", ], - 'installable': True, + "installable": True, } diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 28b1b49..3cd01ba 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,6 +22,10 @@ default_language_version: python: python3 node: "14.13.0" repos: + - repo: https://github.com/psf/black + rev: 22.8.0 + hooks: + - id: black - repo: https://github.com/PyCQA/flake8 rev: 3.8.3 hooks: