Skip to content

Commit b44372d

Browse files
author
Jorge Martinez
committed
Exclude autogenerated files from code formatting
1 parent 416245a commit b44372d

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,34 @@ repos:
55
hooks:
66
- id: black
77
args: [
8-
--line-length, "100",
8+
--line-length, "79",
9+
--force-exclude, ansys/api/fluent/v0/|tui.py,
910
ansys, codegen, doc, examples, tests
1011
]
1112

1213
- repo: https://github.com/pycqa/isort
1314
rev: 5.10.1
1415
hooks:
1516
- id: isort
16-
exclude: ^src/ansys/templates/pypkg/
1717
args: [
1818
--profile, black,
19+
--skip, ansys/fluent/core/meshing/tui.py,
20+
--skip, ansys/fluent/core/solver/tui.py,
21+
--skip, ansys/fluent/core/solver/settings.py,
22+
--skip-glob, ansys/api/fluent/v0/*,
1923
--force-sort-within-sections,
20-
--line-length, "100",
24+
--line-length, "79",
2125
--section-default, THIRDPARTY,
2226
--filter-files,
2327
ansys, codegen, doc, examples, tests
2428
]
2529

26-
- repo: https://gitlab.com/PyCQA/flake8
30+
- repo: https://github.com/PyCQA/flake8
2731
rev: 4.0.1
2832
hooks:
2933
- id: flake8
3034
args: [
35+
--exclude, ansys/api/fluent/v0/* ansys/fluent/core/meshing/tui.py ansys/fluent/core/solver/tui.py ansys/fluent/core/solver/settings.py,
3136
ansys, codegen, doc, examples, tests
3237
]
3338

0 commit comments

Comments
 (0)