From 991c9b86fe5a428739267ea4dc24fa729629f262 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 01:04:45 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/PyCQA/autoflake: v2.1.1 → v2.3.1](https://github.com/PyCQA/autoflake/compare/v2.1.1...v2.3.1) - [github.com/pycqa/isort: 5.12.0 → 5.13.2](https://github.com/pycqa/isort/compare/5.12.0...5.13.2) - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v5.0.0) - [github.com/psf/black: 23.3.0 → 24.10.0](https://github.com/psf/black/compare/23.3.0...24.10.0) - [github.com/adrienverge/yamllint.git: v1.32.0 → v1.35.1](https://github.com/adrienverge/yamllint.git/compare/v1.32.0...v1.35.1) - [github.com/pycqa/flake8: 6.0.0 → 7.1.1](https://github.com/pycqa/flake8/compare/6.0.0...7.1.1) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 37161d4..2c6a799 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,18 +1,18 @@ repos: - repo: https://github.com/PyCQA/autoflake - rev: v2.1.1 + rev: v2.3.1 hooks: - id: autoflake args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable'] - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort args: ["--profile", "black", "--filter-files"] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v5.0.0 hooks: - id: trailing-whitespace exclude: ^docs/.*|.*.md @@ -20,18 +20,18 @@ repos: exclude: ^docs/.*|.*.md - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 24.10.0 hooks: - id: black language_version: python3 - repo: https://github.com/adrienverge/yamllint.git - rev: v1.32.0 + rev: v1.35.1 hooks: - id: yamllint args: ["-d", "relaxed"] - repo: https://github.com/pycqa/flake8 - rev: 6.0.0 + rev: 7.1.1 hooks: - id: flake8 From fc0e6eca9012dfb393b13af983bbc8eeda05dbff Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 01:04:54 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- migration_fixer/management/commands/makemigrations.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/migration_fixer/management/commands/makemigrations.py b/migration_fixer/management/commands/makemigrations.py index 3961181..cab9db8 100644 --- a/migration_fixer/management/commands/makemigrations.py +++ b/migration_fixer/management/commands/makemigrations.py @@ -256,9 +256,11 @@ def handle(self, *app_labels, **options): start_name=conflict_base, changed_files=sorted_changed_files, writer=( - lambda m: self.stdout.write(m) - if self.verbosity >= 2 - else lambda x: x + lambda m: ( + self.stdout.write(m) + if self.verbosity >= 2 + else lambda x: x + ) ), ) else: # pragma: no cover