From 578ea47e38f062b50c24526fd06dab577baba805 Mon Sep 17 00:00:00 2001 From: onerandomusername Date: Mon, 6 Sep 2021 01:56:59 -0400 Subject: [PATCH] fix: change flake8 instance to always run in the poetry venv in pre-commit fixes problem of not being in the venv when running git commit --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a69a6533..9e826392 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -52,7 +52,7 @@ repos: - id: flake8 name: flake8 description: '`flake8` is a command-line utility for enforcing style consistency across Python projects.' - entry: flake8 + entry: poetry run flake8 language: python types: [python] require_serial: true