From 1bc54682faf517e5117b9515d8afb4f2f522136c Mon Sep 17 00:00:00 2001 From: PyAnsys Automation bot <214123248+pyansys-automation@users.noreply.github.com> Date: Fri, 13 Jun 2025 15:43:39 -0400 Subject: [PATCH] Added hooks to the .pre-commit-config.yaml file --- .pre-commit-config.yaml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 233c5ca93..25036a301 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,8 +1,4 @@ -exclude: | - (?x)( - doc/source/conf.py - ) - +exclude: "(?x)(\n doc/source/conf.py\n)\n" repos: - repo: https://github.com/psf/black @@ -14,7 +10,8 @@ repos: rev: 1.16.0 hooks: - id: blacken-docs - additional_dependencies: [black==22.3.0] + additional_dependencies: + - black==22.3.0 - repo: https://github.com/pycqa/isort rev: 5.12.0 @@ -26,14 +23,21 @@ repos: hooks: - id: flake8 args: - - --max-line-length=200 + - --max-line-length=200 - repo: https://github.com/codespell-project/codespell rev: v2.2.6 hooks: - id: codespell - args: ["--ignore-words", "doc/styles/config/vocabularies/ANSYS/accept.txt", "-w"] - exclude: > - (?x)^( - .*\.css - )$ \ No newline at end of file + args: + - --ignore-words + - doc/styles/config/vocabularies/ANSYS/accept.txt + - -w + exclude: "(?x)^(\n .*\\.css\n)$" + +- repo: https://github.com/ansys/pre-commit-hooks + rev: v0.5.2 + hooks: + - id: add-license-headers + args: + - --start_year=2024