Skip to content

Commit ab5ec07

Browse files
ci: ensure consistent isort behavior between ruff and pre-commit (#1251)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 17916f9 commit ab5ec07

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Ensure consistent isort behavior between ruff and pre-commit

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ convention = "numpy"
115115
[tool.ruff.lint.isort]
116116
combine-as-imports = true
117117
force-sort-within-sections = true
118-
known-first-party = ["ansys.health.heart"]
118+
# Ensures all `ansys` imports are considered first party
119+
known-first-party = ["ansys.health.heart", "ansys"]
119120

120121
[tool.coverage.run]
121122
source = ["ansys.health.heart"]

0 commit comments

Comments
 (0)