diff --git a/.docker_files/main/__manifest__.py b/.docker_files/main/__manifest__.py index 5417861..939a924 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': [ + "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": [ "hr_timesheet", ], - 'installable': True, + "installable": True, } diff --git a/.docker_files/main/tests/test_installed_modules.py b/.docker_files/main/tests/test_installed_modules.py index 721dcd9..1e9f784 100644 --- a/.docker_files/main/tests/test_installed_modules.py +++ b/.docker_files/main/tests/test_installed_modules.py @@ -11,5 +11,5 @@ class TestModules(TransactionCase): """ def test_main_is_installed(self): - module = self.env['ir.module.module'].search([('name', '=', 'main')]) - assert module.state == 'installed' + module = self.env["ir.module.module"].search([("name", "=", "main")]) + assert module.state == "installed" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 004b714..99c536a 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: