diff --git a/odex-event/event_custom/models/code_quality_pr_test.py b/odex-event/event_custom/models/code_quality_pr_test.py new file mode 100644 index 000000000..b2a537685 --- /dev/null +++ b/odex-event/event_custom/models/code_quality_pr_test.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +from odoo import models, fields +import unused_module # F401 + +class CodeQualityPRTest(models.Model): + _name = 'code.quality.test' + + name = fields.Char('Name') + + # E501 + very_long_field = fields.Text('Field', help='This is an extremely long help text that exceeds the 120 character limit that we have configured in our flake8 settings') + + # F821 + def buggy_method(self): + return undefined + 1 diff --git a/odex-event/event_custom/models/final_quality_test.py b/odex-event/event_custom/models/final_quality_test.py new file mode 100644 index 000000000..7851e93bd --- /dev/null +++ b/odex-event/event_custom/models/final_quality_test.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +from odoo import models, fields +import os # F401: unused import + +class FinalQualityTest(models.Model): + _name = 'final.quality.test' + + name = fields.Char('Name') + + # E501: line too long + description = fields.Text('Description', help='This is a very very very long help text that exceeds 120 characters limit set by our flake8 configuration') + + # F821: undefined name + def test_method(self): + return some_undefined_variable + 5