From af115c7fdab5ae48e33fb8332f8793e2e7d6d5ae Mon Sep 17 00:00:00 2001 From: David Culley <6276049+davidculley@users.noreply.github.com> Date: Sat, 20 Jul 2024 13:13:12 +0200 Subject: [PATCH] isort: remove settings covered by profile (#3281) * chore: remove isort settings covered by profile https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#custom-configuration * chore: add myself to CONTRIBUTORS file * chore: use black profile for isort * chore(isort): fix configuration to skip directories When overwriting `skip`, `.git` and others would no longer be skipped. `extend_skip` is the correct option. * chore(isort): skip directory `qt/bundle` --- .isort.cfg | 8 +------- qt/.isort.cfg | 9 ++------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/.isort.cfg b/.isort.cfg index bb5a3841f..925b940cd 100644 --- a/.isort.cfg +++ b/.isort.cfg @@ -1,10 +1,4 @@ [settings] -ensure_newline_before_comments=true -force_grid_wrap=0 -include_trailing_comma=True known_first_party=anki,aqt,tests -line_length=88 -multi_line_output=3 profile=black -skip= -use_parentheses=True +extend_skip=qt/bundle diff --git a/qt/.isort.cfg b/qt/.isort.cfg index 9211d96e8..6559fce4f 100644 --- a/qt/.isort.cfg +++ b/qt/.isort.cfg @@ -1,9 +1,4 @@ [settings] -ensure_newline_before_comments=true -force_grid_wrap=0 -include_trailing_comma=True +profile=black known_first_party=anki,aqt -line_length=88 -multi_line_output=3 -skip=aqt/forms,hooks_gen.py -use_parentheses=True +extend_skip=aqt/forms,hooks_gen.py