-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from Tecnativa/fix-black-ast
Fix pre-commit errors with black
- Loading branch information
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] |