Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
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
- id: end-of-file-fixer
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
8 changes: 5 additions & 3 deletions migration_fixer/management/commands/makemigrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading