From b44372d783fb6cded66968b6f70c3430cc70af6c Mon Sep 17 00:00:00 2001 From: Jorge Martinez Date: Wed, 6 Apr 2022 09:45:15 +0200 Subject: [PATCH] Exclude autogenerated files from code formatting --- .pre-commit-config.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dde966d0917b..4d8455303e89 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,8 @@ repos: hooks: - id: black args: [ - --line-length, "100", + --line-length, "79", + --force-exclude, ansys/api/fluent/v0/|tui.py, ansys, codegen, doc, examples, tests ] @@ -13,21 +14,25 @@ repos: rev: 5.10.1 hooks: - id: isort - exclude: ^src/ansys/templates/pypkg/ args: [ --profile, black, + --skip, ansys/fluent/core/meshing/tui.py, + --skip, ansys/fluent/core/solver/tui.py, + --skip, ansys/fluent/core/solver/settings.py, + --skip-glob, ansys/api/fluent/v0/*, --force-sort-within-sections, - --line-length, "100", + --line-length, "79", --section-default, THIRDPARTY, --filter-files, ansys, codegen, doc, examples, tests ] -- repo: https://gitlab.com/PyCQA/flake8 +- repo: https://github.com/PyCQA/flake8 rev: 4.0.1 hooks: - id: flake8 args: [ + --exclude, ansys/api/fluent/v0/* ansys/fluent/core/meshing/tui.py ansys/fluent/core/solver/tui.py ansys/fluent/core/solver/settings.py, ansys, codegen, doc, examples, tests ]