Skip to content

Commit df26dce

Browse files
committed
add known first party isort
1 parent 3c48c5a commit df26dce

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

Chapter02/parents-portal/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ dependencies = [
1212
[tool.pytest.ini_options]
1313
pythonpath = "."
1414

15+
[tool.ruff.lint.isort]
16+
known-first-party = ["app"]
17+
1518
[tool.djlint]
1619
profile = "jinja"
1720

Chapter03/reservation-service/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ dev = [
1818
]
1919

2020

21+
[tool.ruff.lint.isort]
22+
known-first-party = ["domain", "application", "infrastructure", "presentation"]
23+
2124
[tool.pytest.ini_options]
2225
pythonpath = ["."]
2326

Chapter05/api-gateway/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,8 @@ dev = [
2323
]
2424

2525

26+
[tool.ruff.lint.isort]
27+
known-first-party = ["routers", "services", "rate_limiter", "config", "container"]
28+
2629
[tool.pytest.ini_options]
2730
pythonpath = ["."]

Chapter07/sitters-catalog/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ dependencies = [
1111
"tinydb>=4.8.0",
1212
]
1313

14+
[tool.ruff.lint.isort]
15+
known-first-party = ["features", "shared", "config"]
16+
1417
[tool.fastapi]
1518
entrypoint = "main:app"
1619

0 commit comments

Comments
 (0)