diff --git a/.docker_files/main/tests/test_installed_modules.py b/.docker_files/main/tests/test_installed_modules.py index be2f8ad..45a711c 100644 --- a/.docker_files/main/tests/test_installed_modules.py +++ b/.docker_files/main/tests/test_installed_modules.py @@ -13,12 +13,12 @@ class TestModules(TransactionCase): def setUp(self): super(TestModules, self).setUp() - self.modules = self.env['ir.module.module'] + self.modules = self.env["ir.module.module"] def test_hr_event(self): """HR Event is installed.""" - self.assertTrue(self.modules.search([('name', '=', 'hr_event')])) + self.assertTrue(self.modules.search([("name", "=", "hr_event")])) def test_hr_working_space(self): """Working Space is installed.""" - self.assertTrue(self.modules.search([('name', '=', 'hr_working_space')])) + self.assertTrue(self.modules.search([("name", "=", "hr_working_space")])) 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: