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 b44372d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,34 @@ repos:
hooks:
- id: black
args: [
--line-length, "100",
--line-length, "79",
--force-exclude, ansys/api/fluent/v0/|tui.py,
ansys, codegen, doc, examples, tests
]

- repo: https://github.com/pycqa/isort
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
]

Expand Down

0 comments on commit b44372d

Please sign in to comment.