From fa34f18eda0e2cf37ab9d9805668e3dfc776cd1d Mon Sep 17 00:00:00 2001 From: Vadim Evlentev Date: Thu, 26 Oct 2023 15:01:04 +0300 Subject: [PATCH 1/2] Update black settings - ignore migrations --- pyproject.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 078b85b..dc4aafd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,12 @@ target-version = 'py39' line-length = 79 skip-string-normalization = true skip-magic-trailing-comma = false -extend-exclude = 'backend/backend/settings.py' +extend-exclude = ''' + ( + backend/backend/settings.py + | migrations + ) + ''' [tool.isort] multi_line_output=3 From 20a261f3724ece85d301a444fcda8156b8b4b5f4 Mon Sep 17 00:00:00 2001 From: Vadim Evlentev Date: Fri, 27 Oct 2023 14:47:31 +0300 Subject: [PATCH 2/2] fix black settings --- backend/users/migrations/0009_auto_20231010_1303.py | 4 +--- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/users/migrations/0009_auto_20231010_1303.py b/backend/users/migrations/0009_auto_20231010_1303.py index aa003f5..bde2c05 100644 --- a/backend/users/migrations/0009_auto_20231010_1303.py +++ b/backend/users/migrations/0009_auto_20231010_1303.py @@ -24,7 +24,5 @@ class Migration(migrations.Migration): verbose_name='Подразделение', ), ), - migrations.DeleteModel( - name='Department', - ), + migrations.DeleteModel(name='Department',), ] diff --git a/pyproject.toml b/pyproject.toml index dc4aafd..67d2b65 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ target-version = 'py39' line-length = 79 skip-string-normalization = true skip-magic-trailing-comma = false -extend-exclude = ''' +force-exclude = ''' ( backend/backend/settings.py | migrations