Skip to content

Commit

Permalink
Exclude autogenerated files from code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Martinez committed Apr 6, 2022
1 parent 416245a commit 10a85d4
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ repos:
hooks:
- id: black
args: [
--force-exclude, ansys/api/fluent/v0/,
--force-exclude, ansys/fluent/core/meshing/tui.py,
--force-exclude, ansys/fluent/core/solver/tui.py,
--force-exclude, ansys/fluent/core/solver/settings.py,
--line-length, "100",
ansys, codegen, doc, examples, tests
]
Expand All @@ -13,21 +17,28 @@ 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",
--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/*,
--exclude ansys/fluent/core/meshing/tui.py,
--exclude ansys/fluent/core/solver/tui.py,
--exclude ansys/fluent/core/solver/settings.py,
ansys, codegen, doc, examples, tests
]

Expand Down

0 comments on commit 10a85d4

Please sign in to comment.