From b0fff5af0c20e747d16fb62bc24fd81129a772d6 Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Sun, 6 Jul 2025 17:11:35 +0500 Subject: [PATCH] ci(pre-commit): exclude QSS themes from pyright and target them in qss check Signed-off-by: Boris Yumankulov --- .pre-commit-config.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 51408b6..0a11ed8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,8 +27,9 @@ repos: name: pyright entry: pyright language: system - 'types_or': [python, pyi] + types_or: [python, pyi] require_serial: true + exclude: '^portprotonqt/themes/[^/]+/styles\.py$' - repo: local hooks: @@ -37,5 +38,5 @@ repos: entry: ./dev-scripts/check_qss_properties.py language: system types: [file] - files: \.py$ + files: ^portprotonqt/themes/[^/]+/styles\.py$ pass_filenames: false