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']