From 95d4e9c2ca6771eaab7bdc1ed40cc599f537204e Mon Sep 17 00:00:00 2001 From: Julien Moura Date: Wed, 13 Nov 2024 12:33:28 +0100 Subject: [PATCH] fix(tooling): fix path for flake8 --- .pre-commit-config.yaml | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7039aa7..f76a8e4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,8 @@ repos: rev: v5.0.0 hooks: - id: check-added-large-files - args: ["--maxkb=500"] + args: + - --maxkb=500 - id: check-case-conflict - id: check-xml - id: check-yaml @@ -13,36 +14,44 @@ repos: - id: end-of-file-fixer - id: fix-byte-order-marker - id: fix-encoding-pragma - args: [--remove] + args: + - --remove - id: trailing-whitespace - args: [--markdown-linebreak-ext=md] + args: + - --markdown-linebreak-ext=md - repo: https://github.com/astral-sh/ruff-pre-commit rev: "v0.7.1" hooks: - id: ruff - args: ["--fix-only", "--target-version=py39"] + args: + - --fix-only + - --target-version=py39 - repo: https://github.com/psf/black rev: 24.10.0 hooks: - id: black - args: ["--target-version=py39"] + args: + - --target-version=py39 - repo: https://github.com/pycqa/isort rev: 5.13.2 hooks: - id: isort - args: ["--profile", "black", "--filter-files"] + args: + - --profile + - black + - --filter-files - repo: https://github.com/pycqa/flake8 rev: 7.1.1 hooks: - id: flake8 language: python - files: ^qtribu/.*\.py$ - types: [python] - additional_dependencies: ["flake8-qgis"] + files: ^menu_from_project/.*\.py$ + additional_dependencies: + - "flake8-qgis" args: [ "--config=setup.cfg",