Skip to content

Commit

Permalink
Fix isort 5 compatibility with black
Browse files Browse the repository at this point in the history
This fix is needed to avoid PyCQA/isort#1481.

Actually a test was giving a false positive. Fixed too.
  • Loading branch information
Jairo Llopis authored and github-actions[bot] committed Sep 14, 2020
1 parent 2a681cb commit dbaecbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ repos:
hooks:
- id: isort
name: isort except __init__.py
args: [--settings, .]
exclude: /__init__\.py$
- repo: https://github.com/prettier/prettier
rev: 2.1.1
Expand Down
3 changes: 2 additions & 1 deletion tests/test_nitpicking.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,10 @@ def some_method(self,test):
from logging import getLogger
from os.path import join
from requests import get
import odoo
from odoo import models
from requests import get
_logger = getLogger(__name__)
Expand Down

0 comments on commit dbaecbd

Please sign in to comment.