mirror of
https://github.com/esphome/esphome.git
synced 2026-09-15 09:08:41 +00:00
[ci] Scope local pylint pre-commit hook to esphome/ to match CI
The ``pylint`` CI job runs ``pylint esphome`` — esphome/ only. The local pre-commit hook had no ``files:`` restriction, so it also linted ``tests/``, flagging pre-existing protected-access usage and class-size issues that CI never sees. That blocked local commits on warnings CI doesn't gate on. Add ``files: ^esphome/.+\\.py$`` to the local pylint hook so its scope matches the CI job exactly.
This commit is contained in:
@@ -58,6 +58,7 @@ repos:
|
||||
entry: python3 script/run-in-env.py pylint
|
||||
language: system
|
||||
types: [python]
|
||||
files: ^esphome/.+\.py$
|
||||
- id: clang-tidy-hash
|
||||
name: Update clang-tidy hash
|
||||
entry: python script/clang_tidy_hash.py --update-if-changed
|
||||
|
||||
Reference in New Issue
Block a user