chore: auto run formatting on core pre-commit (#516)
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user