diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 37161d4d..2c6a7991 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 diff --git a/migration_fixer/management/commands/makemigrations.py b/migration_fixer/management/commands/makemigrations.py index 39611813..cab9db8e 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