Skip to content

Commit c006407

Browse files
committed
move known first party to the top pyproject toml
1 parent df26dce commit c006407

5 files changed

Lines changed: 8 additions & 12 deletions

File tree

Chapter02/parents-portal/pyproject.toml

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

15-
[tool.ruff.lint.isort]
16-
known-first-party = ["app"]
17-
1815
[tool.djlint]
1916
profile = "jinja"
2017

Chapter03/reservation-service/pyproject.toml

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

2020

21-
[tool.ruff.lint.isort]
22-
known-first-party = ["domain", "application", "infrastructure", "presentation"]
23-
2421
[tool.pytest.ini_options]
2522
pythonpath = ["."]
2623

Chapter05/api-gateway/pyproject.toml

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

2525

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

Chapter07/sitters-catalog/pyproject.toml

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

14-
[tool.ruff.lint.isort]
15-
known-first-party = ["features", "shared", "config"]
16-
1714
[tool.fastapi]
1815
entrypoint = "main:app"
1916

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,13 @@ select = ["I", "E", "F", "Q", "UP", "FAST", "ARG"]
1717
[tool.ruff.lint.pycodestyle]
1818
max-line-length = 120
1919

20+
[tool.ruff.lint.isort]
21+
known-first-party = [
22+
"app",
23+
"domain", "application", "infrastructure", "presentation",
24+
"features", "shared",
25+
"routers", "services", "rate_limiter", "config", "container",
26+
]
27+
2028
[tool.ruff.lint.per-file-ignores]
2129
"Chapter05/api-gateway/routers/*.py" = ["ARG001"]

0 commit comments

Comments
 (0)