├── .bumpversion.cfg ├── .coveragerc ├── .editorconfig ├── .eslintrc.yml ├── .flake8 ├── .github └── workflows │ ├── stale.yml │ └── test.yml ├── .gitignore ├── .isort.cfg ├── .pre-commit-config.yaml ├── .pre-commit-hooks.yaml ├── .prettierrc.yml ├── .pylintrc ├── LICENSE ├── README.md ├── docs ├── conf.py ├── dev.md ├── index.rst └── messages │ ├── index.rst │ └── xml │ ├── index.rst │ └── oe-structure-missing-id.rst ├── pyproject.toml ├── pytest.ini ├── requirements.txt ├── setup.py ├── src └── oca_pre_commit_hooks │ ├── __init__.py │ ├── __main__.py │ ├── base_checker.py │ ├── checks_odoo_module.py │ ├── checks_odoo_module_csv.py │ ├── checks_odoo_module_po.py │ ├── checks_odoo_module_xml.py │ ├── cli.py │ ├── cli_po.py │ ├── global_parser.py │ └── utils.py ├── test-requirements.txt ├── test_repo ├── broken_module │ ├── __init__.py │ ├── __openerp__.py │ ├── broken_example.js │ ├── broken_example2.js │ ├── coding_latin.py │ ├── demo │ │ └── duplicated_id_demo.xml │ ├── deprecated_disable.xml │ ├── doc │ │ └── index.rst │ ├── encoding_utf8.py │ ├── i18n │ │ ├── ar_unicode.po │ │ ├── broken_module.pot │ │ └── es.po │ ├── i18n_extra │ │ └── es.po │ ├── interpreter_wox.py │ ├── interpreter_wx.py │ ├── ir.model.access.csv │ ├── lib │ │ ├── broken_example.js │ │ └── tab_no_check.js │ ├── model_view.xml │ ├── model_view2.xml │ ├── model_view_odoo.xml │ ├── model_view_odoo2.xml │ ├── models │ │ ├── __init__.py │ │ ├── broken_model.py │ │ ├── model_inhe1.py │ │ └── model_inhe2.py │ ├── pylint_oca_broken.py │ ├── report.xml │ ├── report │ │ ├── manual.xml │ │ └── test_report.xml │ ├── rst_syntax.rst │ ├── skip_file_no_used.xml │ ├── skip_file_not_used.xml │ ├── skip_xml_check.xml │ ├── skip_xml_check_2.xml │ ├── skip_xml_check_3.xml │ ├── template1.xml │ ├── template1_copy.xml │ ├── template1_copy2.xml │ ├── template1_disable.xml │ ├── tests │ │ ├── __init__.py │ │ ├── test_model.py │ │ ├── xml_not_important.xml │ │ ├── xml_not_important_0.xml │ │ ├── xml_not_important_1.xml │ │ ├── xml_not_important_3.xml │ │ └── xml_not_important_4.xml │ ├── wointerpreter_wx.py │ ├── xml_empty.xml │ ├── xml_semi_empty.po │ ├── xml_special_char.xml │ ├── xml_syntax_error.XML │ └── xml_wo_header.xml ├── broken_module2 │ ├── README.rst │ ├── __init__.py │ ├── __openerp__.py │ ├── i18n │ │ └── en.po │ ├── ir.model.access.csv │ └── tests │ │ └── data │ │ ├── help_test_data.xml │ │ ├── odoo_data_noupdate_0.xml │ │ └── odoo_data_noupdate_1.xml ├── broken_module3 │ ├── README.rst │ ├── __init__.py │ ├── __openerp__.py │ └── ir.model.access.csv ├── eleven_module │ ├── README.rst │ ├── __init__.py │ ├── __manifest__.py │ ├── i18n │ │ ├── autofixed_ugly.po │ │ ├── pretty.po │ │ └── ugly.po │ ├── migrations │ │ └── 11.0.1.0.0 │ │ │ └── not_used_from_manifest.xml │ ├── models.py │ ├── security │ │ └── ir.model.access.csv │ ├── tests │ │ ├── __init__.py │ │ └── test_model1.py │ └── utf8_models.py ├── manifest_werror │ ├── __init__.py │ └── __manifest__.py ├── no_odoo_module │ ├── __init__.py │ ├── eval_used.py │ └── myfile.py ├── odoo18_module │ ├── __init__.py │ ├── __manifest__.py │ └── views │ │ └── deprecated_chatter.xml ├── pylint_deprecated_modules │ ├── README.md │ ├── __init__.py │ ├── ipdb.py │ ├── openerp │ │ ├── __init__.py │ │ └── osv │ │ │ └── __init__.py │ ├── pdb.py │ └── pudb.py ├── syntax_err_module │ ├── __init__.py │ ├── __manifest__.py │ ├── i18n │ │ └── es.po │ └── ir.model.access.csv ├── test_module │ ├── README.rst │ ├── __init__.py │ ├── __openerp__.py │ ├── absolute_import.py │ ├── except_pass.py │ ├── i18n │ │ └── fr.po │ ├── i18n_extra │ │ └── fr.po │ ├── migrations │ │ └── 10.0.1.0.0 │ │ │ └── pre-migration.py │ ├── model_view.xml │ ├── osv_expression.py │ ├── res_users.xml │ ├── samples │ │ └── my_no_odoo_file.csv │ ├── security │ │ └── ir.model.access.csv │ ├── static │ │ └── src │ │ │ └── xml │ │ │ └── widget.xml │ ├── test_example.js │ ├── website_templates.xml │ └── website_templates_disable.xml ├── twelve_module │ ├── README.rst │ ├── __init__.py │ ├── __manifest__.py │ ├── models.py │ ├── security │ │ └── ir.model.access.csv │ └── utf8_models.py ├── woinit_module │ ├── __manifest__.py │ ├── doc │ │ └── index.rst │ └── ir.model.access.csv ├── womanifest_module │ ├── __init__.py │ ├── doc │ │ └── index.rst │ └── ir.model.access.csv └── woversion_module │ ├── __init__.py │ └── __manifest__.py ├── tests ├── __init__.py ├── common.py ├── test_checks.py ├── test_checks_po.py ├── test_pre_commit_hook.py └── test_profiling.py └── tox.ini /.bumpversion.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/.bumpversion.cfg -------------------------------------------------------------------------------- /.coveragerc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/.coveragerc -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/.eslintrc.yml -------------------------------------------------------------------------------- /.flake8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/.flake8 -------------------------------------------------------------------------------- /.github/workflows/stale.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/.github/workflows/stale.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/.gitignore -------------------------------------------------------------------------------- /.isort.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/.isort.cfg -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /.pre-commit-hooks.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/.pre-commit-hooks.yaml -------------------------------------------------------------------------------- /.prettierrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/.prettierrc.yml -------------------------------------------------------------------------------- /.pylintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/.pylintrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/README.md -------------------------------------------------------------------------------- /docs/conf.py: -------------------------------------------------------------------------------- 1 | # pylint: skip-file 2 | project = "Odoo Hooks Documentation" 3 | root_doc = "index" 4 | -------------------------------------------------------------------------------- /docs/dev.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/docs/dev.md -------------------------------------------------------------------------------- /docs/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/docs/index.rst -------------------------------------------------------------------------------- /docs/messages/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/docs/messages/index.rst -------------------------------------------------------------------------------- /docs/messages/xml/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/docs/messages/xml/index.rst -------------------------------------------------------------------------------- /docs/messages/xml/oe-structure-missing-id.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/docs/messages/xml/oe-structure-missing-id.rst -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/pyproject.toml -------------------------------------------------------------------------------- /pytest.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/pytest.ini -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/requirements.txt -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/setup.py -------------------------------------------------------------------------------- /src/oca_pre_commit_hooks/__init__.py: -------------------------------------------------------------------------------- 1 | __version__ = "0.1.8" 2 | -------------------------------------------------------------------------------- /src/oca_pre_commit_hooks/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/src/oca_pre_commit_hooks/__main__.py -------------------------------------------------------------------------------- /src/oca_pre_commit_hooks/base_checker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/src/oca_pre_commit_hooks/base_checker.py -------------------------------------------------------------------------------- /src/oca_pre_commit_hooks/checks_odoo_module.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/src/oca_pre_commit_hooks/checks_odoo_module.py -------------------------------------------------------------------------------- /src/oca_pre_commit_hooks/checks_odoo_module_csv.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/src/oca_pre_commit_hooks/checks_odoo_module_csv.py -------------------------------------------------------------------------------- /src/oca_pre_commit_hooks/checks_odoo_module_po.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/src/oca_pre_commit_hooks/checks_odoo_module_po.py -------------------------------------------------------------------------------- /src/oca_pre_commit_hooks/checks_odoo_module_xml.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/src/oca_pre_commit_hooks/checks_odoo_module_xml.py -------------------------------------------------------------------------------- /src/oca_pre_commit_hooks/cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/src/oca_pre_commit_hooks/cli.py -------------------------------------------------------------------------------- /src/oca_pre_commit_hooks/cli_po.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/src/oca_pre_commit_hooks/cli_po.py -------------------------------------------------------------------------------- /src/oca_pre_commit_hooks/global_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/src/oca_pre_commit_hooks/global_parser.py -------------------------------------------------------------------------------- /src/oca_pre_commit_hooks/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/src/oca_pre_commit_hooks/utils.py -------------------------------------------------------------------------------- /test-requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test-requirements.txt -------------------------------------------------------------------------------- /test_repo/broken_module/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/__init__.py -------------------------------------------------------------------------------- /test_repo/broken_module/__openerp__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/__openerp__.py -------------------------------------------------------------------------------- /test_repo/broken_module/broken_example.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/broken_example.js -------------------------------------------------------------------------------- /test_repo/broken_module/broken_example2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/broken_example2.js -------------------------------------------------------------------------------- /test_repo/broken_module/coding_latin.py: -------------------------------------------------------------------------------- 1 | # -*- coding: latin-1 -*- 2 | -------------------------------------------------------------------------------- /test_repo/broken_module/demo/duplicated_id_demo.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/demo/duplicated_id_demo.xml -------------------------------------------------------------------------------- /test_repo/broken_module/deprecated_disable.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/deprecated_disable.xml -------------------------------------------------------------------------------- /test_repo/broken_module/doc/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/doc/index.rst -------------------------------------------------------------------------------- /test_repo/broken_module/encoding_utf8.py: -------------------------------------------------------------------------------- 1 | # -*- encoding: utf-8 -*- 2 | -------------------------------------------------------------------------------- /test_repo/broken_module/i18n/ar_unicode.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/i18n/ar_unicode.po -------------------------------------------------------------------------------- /test_repo/broken_module/i18n/broken_module.pot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/i18n/broken_module.pot -------------------------------------------------------------------------------- /test_repo/broken_module/i18n/es.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/i18n/es.po -------------------------------------------------------------------------------- /test_repo/broken_module/i18n_extra/es.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/i18n_extra/es.po -------------------------------------------------------------------------------- /test_repo/broken_module/interpreter_wox.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/interpreter_wox.py -------------------------------------------------------------------------------- /test_repo/broken_module/interpreter_wx.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/interpreter_wx.py -------------------------------------------------------------------------------- /test_repo/broken_module/ir.model.access.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/ir.model.access.csv -------------------------------------------------------------------------------- /test_repo/broken_module/lib/broken_example.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/lib/broken_example.js -------------------------------------------------------------------------------- /test_repo/broken_module/lib/tab_no_check.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/lib/tab_no_check.js -------------------------------------------------------------------------------- /test_repo/broken_module/model_view.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/model_view.xml -------------------------------------------------------------------------------- /test_repo/broken_module/model_view2.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/model_view2.xml -------------------------------------------------------------------------------- /test_repo/broken_module/model_view_odoo.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/model_view_odoo.xml -------------------------------------------------------------------------------- /test_repo/broken_module/model_view_odoo2.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/model_view_odoo2.xml -------------------------------------------------------------------------------- /test_repo/broken_module/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/models/__init__.py -------------------------------------------------------------------------------- /test_repo/broken_module/models/broken_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/models/broken_model.py -------------------------------------------------------------------------------- /test_repo/broken_module/models/model_inhe1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/models/model_inhe1.py -------------------------------------------------------------------------------- /test_repo/broken_module/models/model_inhe2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/models/model_inhe2.py -------------------------------------------------------------------------------- /test_repo/broken_module/pylint_oca_broken.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/pylint_oca_broken.py -------------------------------------------------------------------------------- /test_repo/broken_module/report.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/report.xml -------------------------------------------------------------------------------- /test_repo/broken_module/report/manual.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_repo/broken_module/report/test_report.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/report/test_report.xml -------------------------------------------------------------------------------- /test_repo/broken_module/rst_syntax.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/rst_syntax.rst -------------------------------------------------------------------------------- /test_repo/broken_module/skip_file_no_used.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/skip_file_no_used.xml -------------------------------------------------------------------------------- /test_repo/broken_module/skip_file_not_used.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/skip_file_not_used.xml -------------------------------------------------------------------------------- /test_repo/broken_module/skip_xml_check.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/skip_xml_check.xml -------------------------------------------------------------------------------- /test_repo/broken_module/skip_xml_check_2.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/skip_xml_check_2.xml -------------------------------------------------------------------------------- /test_repo/broken_module/skip_xml_check_3.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/skip_xml_check_3.xml -------------------------------------------------------------------------------- /test_repo/broken_module/template1.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/template1.xml -------------------------------------------------------------------------------- /test_repo/broken_module/template1_copy.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/template1_copy.xml -------------------------------------------------------------------------------- /test_repo/broken_module/template1_copy2.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/template1_copy2.xml -------------------------------------------------------------------------------- /test_repo/broken_module/template1_disable.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/template1_disable.xml -------------------------------------------------------------------------------- /test_repo/broken_module/tests/__init__.py: -------------------------------------------------------------------------------- 1 | from . import test_model 2 | -------------------------------------------------------------------------------- /test_repo/broken_module/tests/test_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/tests/test_model.py -------------------------------------------------------------------------------- /test_repo/broken_module/tests/xml_not_important.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/tests/xml_not_important.xml -------------------------------------------------------------------------------- /test_repo/broken_module/tests/xml_not_important_0.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/tests/xml_not_important_0.xml -------------------------------------------------------------------------------- /test_repo/broken_module/tests/xml_not_important_1.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/tests/xml_not_important_1.xml -------------------------------------------------------------------------------- /test_repo/broken_module/tests/xml_not_important_3.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/tests/xml_not_important_3.xml -------------------------------------------------------------------------------- /test_repo/broken_module/tests/xml_not_important_4.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/tests/xml_not_important_4.xml -------------------------------------------------------------------------------- /test_repo/broken_module/wointerpreter_wx.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/wointerpreter_wx.py -------------------------------------------------------------------------------- /test_repo/broken_module/xml_empty.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_repo/broken_module/xml_semi_empty.po: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test_repo/broken_module/xml_special_char.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/xml_special_char.xml -------------------------------------------------------------------------------- /test_repo/broken_module/xml_syntax_error.XML: -------------------------------------------------------------------------------- 1 | 2 | <{xml-syntax-error}> -------------------------------------------------------------------------------- /test_repo/broken_module/xml_wo_header.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module/xml_wo_header.xml -------------------------------------------------------------------------------- /test_repo/broken_module2/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module2/README.rst -------------------------------------------------------------------------------- /test_repo/broken_module2/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | from . import tests 4 | -------------------------------------------------------------------------------- /test_repo/broken_module2/__openerp__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module2/__openerp__.py -------------------------------------------------------------------------------- /test_repo/broken_module2/i18n/en.po: -------------------------------------------------------------------------------- 1 | PO syntax error 2 | -------------------------------------------------------------------------------- /test_repo/broken_module2/ir.model.access.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module2/ir.model.access.csv -------------------------------------------------------------------------------- /test_repo/broken_module2/tests/data/help_test_data.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module2/tests/data/help_test_data.xml -------------------------------------------------------------------------------- /test_repo/broken_module2/tests/data/odoo_data_noupdate_0.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module2/tests/data/odoo_data_noupdate_0.xml -------------------------------------------------------------------------------- /test_repo/broken_module2/tests/data/odoo_data_noupdate_1.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module2/tests/data/odoo_data_noupdate_1.xml -------------------------------------------------------------------------------- /test_repo/broken_module3/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module3/README.rst -------------------------------------------------------------------------------- /test_repo/broken_module3/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_repo/broken_module3/__openerp__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module3/__openerp__.py -------------------------------------------------------------------------------- /test_repo/broken_module3/ir.model.access.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/broken_module3/ir.model.access.csv -------------------------------------------------------------------------------- /test_repo/eleven_module/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/eleven_module/README.rst -------------------------------------------------------------------------------- /test_repo/eleven_module/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/eleven_module/__init__.py -------------------------------------------------------------------------------- /test_repo/eleven_module/__manifest__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/eleven_module/__manifest__.py -------------------------------------------------------------------------------- /test_repo/eleven_module/i18n/autofixed_ugly.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/eleven_module/i18n/autofixed_ugly.po -------------------------------------------------------------------------------- /test_repo/eleven_module/i18n/pretty.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/eleven_module/i18n/pretty.po -------------------------------------------------------------------------------- /test_repo/eleven_module/i18n/ugly.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/eleven_module/i18n/ugly.po -------------------------------------------------------------------------------- /test_repo/eleven_module/migrations/11.0.1.0.0/not_used_from_manifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/eleven_module/migrations/11.0.1.0.0/not_used_from_manifest.xml -------------------------------------------------------------------------------- /test_repo/eleven_module/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/eleven_module/models.py -------------------------------------------------------------------------------- /test_repo/eleven_module/security/ir.model.access.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/eleven_module/security/ir.model.access.csv -------------------------------------------------------------------------------- /test_repo/eleven_module/tests/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | from . import test_model1 3 | -------------------------------------------------------------------------------- /test_repo/eleven_module/tests/test_model1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/eleven_module/tests/test_model1.py -------------------------------------------------------------------------------- /test_repo/eleven_module/utf8_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/eleven_module/utf8_models.py -------------------------------------------------------------------------------- /test_repo/manifest_werror/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_repo/manifest_werror/__manifest__.py: -------------------------------------------------------------------------------- 1 | error -------------------------------------------------------------------------------- /test_repo/no_odoo_module/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/no_odoo_module/__init__.py -------------------------------------------------------------------------------- /test_repo/no_odoo_module/eval_used.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/no_odoo_module/eval_used.py -------------------------------------------------------------------------------- /test_repo/no_odoo_module/myfile.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/no_odoo_module/myfile.py -------------------------------------------------------------------------------- /test_repo/odoo18_module/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_repo/odoo18_module/__manifest__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/odoo18_module/__manifest__.py -------------------------------------------------------------------------------- /test_repo/odoo18_module/views/deprecated_chatter.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/odoo18_module/views/deprecated_chatter.xml -------------------------------------------------------------------------------- /test_repo/pylint_deprecated_modules/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/pylint_deprecated_modules/README.md -------------------------------------------------------------------------------- /test_repo/pylint_deprecated_modules/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_repo/pylint_deprecated_modules/ipdb.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_repo/pylint_deprecated_modules/openerp/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | from . import osv # pylint: disable=W0402 4 | _ = str 5 | -------------------------------------------------------------------------------- /test_repo/pylint_deprecated_modules/openerp/osv/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_repo/pylint_deprecated_modules/pdb.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_repo/pylint_deprecated_modules/pudb.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_repo/syntax_err_module/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_repo/syntax_err_module/__manifest__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/syntax_err_module/__manifest__.py -------------------------------------------------------------------------------- /test_repo/syntax_err_module/i18n/es.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/syntax_err_module/i18n/es.po -------------------------------------------------------------------------------- /test_repo/syntax_err_module/ir.model.access.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/syntax_err_module/ir.model.access.csv -------------------------------------------------------------------------------- /test_repo/test_module/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/test_module/README.rst -------------------------------------------------------------------------------- /test_repo/test_module/__init__.py: -------------------------------------------------------------------------------- 1 | from . import osv_expression 2 | -------------------------------------------------------------------------------- /test_repo/test_module/__openerp__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/test_module/__openerp__.py -------------------------------------------------------------------------------- /test_repo/test_module/absolute_import.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/test_module/absolute_import.py -------------------------------------------------------------------------------- /test_repo/test_module/except_pass.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/test_module/except_pass.py -------------------------------------------------------------------------------- /test_repo/test_module/i18n/fr.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/test_module/i18n/fr.po -------------------------------------------------------------------------------- /test_repo/test_module/i18n_extra/fr.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/test_module/i18n_extra/fr.po -------------------------------------------------------------------------------- /test_repo/test_module/migrations/10.0.1.0.0/pre-migration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/test_module/migrations/10.0.1.0.0/pre-migration.py -------------------------------------------------------------------------------- /test_repo/test_module/model_view.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/test_module/model_view.xml -------------------------------------------------------------------------------- /test_repo/test_module/osv_expression.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/test_module/osv_expression.py -------------------------------------------------------------------------------- /test_repo/test_module/res_users.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/test_module/res_users.xml -------------------------------------------------------------------------------- /test_repo/test_module/samples/my_no_odoo_file.csv: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_repo/test_module/security/ir.model.access.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/test_module/security/ir.model.access.csv -------------------------------------------------------------------------------- /test_repo/test_module/static/src/xml/widget.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/test_module/static/src/xml/widget.xml -------------------------------------------------------------------------------- /test_repo/test_module/test_example.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/test_module/test_example.js -------------------------------------------------------------------------------- /test_repo/test_module/website_templates.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/test_module/website_templates.xml -------------------------------------------------------------------------------- /test_repo/test_module/website_templates_disable.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/test_module/website_templates_disable.xml -------------------------------------------------------------------------------- /test_repo/twelve_module/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/twelve_module/README.rst -------------------------------------------------------------------------------- /test_repo/twelve_module/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/twelve_module/__init__.py -------------------------------------------------------------------------------- /test_repo/twelve_module/__manifest__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/twelve_module/__manifest__.py -------------------------------------------------------------------------------- /test_repo/twelve_module/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/twelve_module/models.py -------------------------------------------------------------------------------- /test_repo/twelve_module/security/ir.model.access.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/twelve_module/security/ir.model.access.csv -------------------------------------------------------------------------------- /test_repo/twelve_module/utf8_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/twelve_module/utf8_models.py -------------------------------------------------------------------------------- /test_repo/woinit_module/__manifest__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_repo/woinit_module/doc/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/woinit_module/doc/index.rst -------------------------------------------------------------------------------- /test_repo/woinit_module/ir.model.access.csv: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_repo/womanifest_module/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | -------------------------------------------------------------------------------- /test_repo/womanifest_module/doc/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/womanifest_module/doc/index.rst -------------------------------------------------------------------------------- /test_repo/womanifest_module/ir.model.access.csv: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_repo/woversion_module/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test_repo/woversion_module/__manifest__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/test_repo/woversion_module/__manifest__.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | from . import common 2 | -------------------------------------------------------------------------------- /tests/common.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/tests/common.py -------------------------------------------------------------------------------- /tests/test_checks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/tests/test_checks.py -------------------------------------------------------------------------------- /tests/test_checks_po.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/tests/test_checks_po.py -------------------------------------------------------------------------------- /tests/test_pre_commit_hook.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/tests/test_pre_commit_hook.py -------------------------------------------------------------------------------- /tests/test_profiling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/tests/test_profiling.py -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OCA/odoo-pre-commit-hooks/HEAD/tox.ini --------------------------------------------------------------------------------