From 5dd2828270b826975d862816ef501d954946de75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sun, 1 Mar 2020 10:33:51 +0100 Subject: [PATCH] sample files: simpler isort configuration fixes #625 closes #629 --- sample_files/pre-commit-13.0/.isort.cfg | 2 +- sample_files/pre-commit-13.0/.pre-commit-config.yaml | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/sample_files/pre-commit-13.0/.isort.cfg b/sample_files/pre-commit-13.0/.isort.cfg index 5751c40dd..7683badfa 100644 --- a/sample_files/pre-commit-13.0/.isort.cfg +++ b/sample_files/pre-commit-13.0/.isort.cfg @@ -9,4 +9,4 @@ line_length=88 known_odoo=odoo known_odoo_addons=odoo.addons sections=FUTURE,STDLIB,THIRDPARTY,ODOO,ODOO_ADDONS,FIRSTPARTY,LOCALFOLDER -known_third_party= +default_section=THIRDPARTY diff --git a/sample_files/pre-commit-13.0/.pre-commit-config.yaml b/sample_files/pre-commit-13.0/.pre-commit-config.yaml index 963476d18..d9c843aca 100644 --- a/sample_files/pre-commit-13.0/.pre-commit-config.yaml +++ b/sample_files/pre-commit-13.0/.pre-commit-config.yaml @@ -85,12 +85,8 @@ repos: rev: v1.26.2 hooks: - id: pyupgrade - - repo: https://github.com/asottile/seed-isort-config - rev: v1.9.4 - hooks: - - id: seed-isort-config - - repo: https://github.com/pre-commit/mirrors-isort - rev: v4.3.21 + - repo: https://github.com/timothycrosley/isort + rev: 4.3.21-2 hooks: - id: isort name: isort except __init__.py