From cc40a364f07e27627e7bcc6109b1de8a02f82a66 Mon Sep 17 00:00:00 2001 From: cthomas Date: Mon, 6 Jan 2025 16:04:32 -0800 Subject: [PATCH] chore: auto run formatting on core pre-commit (#516) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 626308cc..a92299fc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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']