Skip to content

Commit

Permalink
Merge pull request #134 from Tecnativa/fix-precommit-bump_black
Browse files Browse the repository at this point in the history
imp: Odoo <14.0: pin black click dependency to <8.1.0 - Odoo >=14.0: bump black to 22.3.0
  • Loading branch information
sbidoul authored Mar 29, 2022
2 parents c560532 + 6e76280 commit 382f30f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 19.10b0
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-prettier
Expand Down
5 changes: 3 additions & 2 deletions src/.pre-commit-config.yaml.jinja
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{#- This namespace holds repo versions #}
{%- set repo_rev = namespace() %}

{#- '<15' only affects to 14.0 #}
{%- if odoo_version < 15 %}
{%- set repo_rev.autoflake = "v1.4" %}
{%- set repo_rev.black = "20.8b1" %}
{%- set repo_rev.black = "22.3.0" %}
{%- set repo_rev.eslint = "v7.8.1" %}
{%- set repo_rev.flake8 = "3.8.3" %}
{%- set repo_rev.flake8_bugbear = "20.1.4" %}
Expand All @@ -19,7 +20,7 @@
{%- set repo_rev.setuptools_odoo = "2.6.0" %}
{%- else %}
{%- set repo_rev.autoflake = "v1.4" %}
{%- set repo_rev.black = "21.9b0" %}
{%- set repo_rev.black = "22.3.0" %}
{%- set repo_rev.eslint = "v7.32.0" %}
{%- set repo_rev.flake8 = "3.9.2" %}
{%- set repo_rev.flake8_bugbear = "21.9.2" %}
Expand Down
1 change: 1 addition & 0 deletions version-specific/13.0/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ repos:
rev: 19.10b0
hooks:
- id: black
additional_dependencies: ["click<8.1.0"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v1.19.1
hooks:
Expand Down

0 comments on commit 382f30f

Please sign in to comment.