Skip to content

Commit

Permalink
[FIX] Pin Python version for version <=12.0
Browse files Browse the repository at this point in the history
pylint pulls a version of wrapt that is broken on Python 3.11. See
<GrahamDumpleton/wrapt#196>.

This breaks pre-commit for any devs running a modern OS.

Because we already pinned flake8 to Python 3.6 to circumvent a similar
problem, we now simply do it universally to prevent that whole class of
problems.

Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be>
  • Loading branch information
carmenbianca committed Dec 15, 2022
1 parent 510592e commit a7b8463
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions version-specific/mqt-compat/.pre-commit-config.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exclude: |
# You don't usually want a bot to modify your legal texts
(LICENSE.*|COPYING.*)
default_language_version:
python: python3
python: python3.6
repos:
- repo: https://github.com/oca/maintainer-tools
rev: ab1d7f6
Expand All @@ -40,7 +40,9 @@ repos:
rev: v3.4.1
hooks:
- id: flake8
language_version: python{% if odoo_version < 11 %}2{% else %}3.6{% endif %}
{%- if odoo_version <= 10 %}
language_version: python2
{%- endif %}
name: flake8 excluding __init__.py
exclude: __init__\.py
- repo: https://github.com/pre-commit/mirrors-pylint
Expand Down

0 comments on commit a7b8463

Please sign in to comment.