Skip to content

Commit

Permalink
Merge pull request #89 from Tecnativa/fix-black-ast
Browse files Browse the repository at this point in the history
Fix pre-commit errors with black
  • Loading branch information
sbidoul authored Nov 10, 2021
2 parents 6c4b0f7 + c6200a9 commit 6f33304
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ jobs:
with:
# The pylint-odoo version we use here does not support python 3.10
# https://github.com/OCA/oca-addons-repo-template/issues/80
python-version: "3.9"
# We also need to pin to an older version of python for older odoo versions
# where we are not using black > 21. Older black versions won't work with
# Python 3.9.8+, and we can't bump black without reformatting.
python-version: {% if odoo_version < 15 %}"3.9.7"{% else %}"3.10"{% endif %}
- uses: pre-commit/[email protected]

0 comments on commit 6f33304

Please sign in to comment.