chore: auto run formatting on core pre-commit (#516)

This commit is contained in:
cthomas
2025-01-06 16:04:32 -08:00
committed by GitHub
parent cf47802a8c
commit 9d81ecd7d6

View File

@@ -19,14 +19,14 @@ repos:
args: ['--remove-all-unused-imports', '--remove-unused-variables', '--in-place', '--recursive', '--ignore-init-module-imports']
- id: isort
name: isort
entry: poetry run isort
entry: bash -c 'cd apps/core && poetry run isort .'
language: system
types: [python]
args: ['--profile', 'black']
exclude: ^docs/
- id: black
name: black
entry: poetry run black
entry: bash -c 'cd apps/core && poetry run black .'
language: system
types: [python]
args: ['--line-length', '140', '--target-version', 'py310', '--target-version', 'py311']