From a5eac992088e217e631102365de9cd8ef496f64a Mon Sep 17 00:00:00 2001 From: Michael <35783820+mib1185@users.noreply.github.com> Date: Mon, 24 Jan 2022 12:00:49 +0100 Subject: [PATCH] Add pylint to pre-commit hooks (#64665) --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8209bc9c51c..17575ebe375 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -95,6 +95,12 @@ repos: types: [python] require_serial: true files: ^homeassistant/.+\.py$ + - id: pylint + name: pylint + entry: script/run-in-env.sh pylint -j 0 + language: script + types: [python] + files: ^homeassistant/.+\.py$ - id: gen_requirements_all name: gen_requirements_all entry: script/run-in-env.sh python3 -m script.gen_requirements_all