Skip to content

Commit

Permalink
[IMP] [16.0] pre-commit : add black (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
rivo2302 authored Nov 19, 2024
1 parent f9b56f2 commit e99a643
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .docker_files/main/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"resize_observer_error_catcher",
"web_custom_label",
"web_custom_modifier",
"web_search_date_range"
"web_search_date_range",
],
"installable": True,
}
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion web_custom_label/tests/test_view_rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

@ddt
class TestViewRendering(common.SavepointCase):

@classmethod
def setUpClass(cls):
super().setUpClass()
Expand Down
4 changes: 1 addition & 3 deletions web_custom_modifier/models/ir_ui_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ class ViewWithCustomModifiers(models.Model):
def postprocess_and_fields(self, node, model=None, **options):
# Clear the cache in order to recompute _get_active_rules
self.clear_caches()
arch, models = super().postprocess_and_fields(
node, model, **options
)
arch, models = super().postprocess_and_fields(node, model, **options)
modifiers = self.env["web.custom.modifier"].get(model)
arch = _add_custom_modifiers_to_view_arch(modifiers, node)
arch = etree.tostring(node, encoding="unicode").replace("\t", "")
Expand Down
1 change: 0 additions & 1 deletion web_search_date_range/tests/test_res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class TestPartner(TransactionCase):

@classmethod
def setUpClass(cls):
super().setUpClass()
Expand Down
1 change: 0 additions & 1 deletion web_search_date_range/tests/test_search_date_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

@ddt
class TestSearchDateRange(TransactionCase):

@classmethod
def setUpClass(cls):
super().setUpClass()
Expand Down

0 comments on commit e99a643

Please sign in to comment.