Skip to content

Commit

Permalink
[FIX] pre-commit: update pylint odoo to enable valid-odoo-versions ke…
Browse files Browse the repository at this point in the history
…y for v18

Without updating the linter and using valid-odoo-versions=18.0, pylint_odoo passes green but without checking any rules.
  • Loading branch information
sanderlienaerts committed Oct 11, 2024
1 parent 37c9cd7 commit a32f783
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/.pre-commit-config.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,12 @@
{%- set repo_rev.pre_commit_hooks = "v4.6.0" %}
{%- set repo_rev.prettier = "2.7.1" %}
{%- set repo_rev.prettier_xml = "2.2.0" %}
{%- set repo_rev.pylint_odoo = "v9.1.2" %}
{%- set repo_rev.pylint_odoo = "v9.1.3" %}
{%- set repo_rev.pyupgrade = "v2.38.2" %}
{%- set repo_rev.ruff = "v0.6.8" %}
{%- set repo_rev.setuptools_odoo = "3.1.8" %}
{%- endif %}

{%- if odoo_version > 16 %}
{%- set repo_rev.pylint_odoo = "v9.0.4" %}
{%- endif %}

{#- Older versions that differ a lot have their own hardcoded templates for readability #}
{%- if odoo_version < 13 %}
{%- include "version-specific/mqt-compat/.pre-commit-config.yaml.jinja" %}
Expand Down

0 comments on commit a32f783

Please sign in to comment.