11[tool .ruff .lint ]
22preview = true
3- select = [" E101" , " E225" , " E23" , " E24" , " E3" , " E4" , " E7" , " E9" , " F" , " PLR0402" , " RET506" , " UP032" , " W29" ]
3+ select = [" E101" , " E225" , " E23" , " E24" , " E3" , " E4" , " E7" , " E9" , " F" , " PLR0402" , " RET506" , " TID252 " , " UP032" , " W29" ]
44ignore = [" E402" , " E711" , " E712" , " E721" , " E722" ]
55
66[tool .importlinter ]
@@ -10,8 +10,8 @@ include_external_packages = true
1010[[tool .importlinter .contracts ]]
1111name = " Do not import the persistence layer from the API layer"
1212type = " forbidden"
13- source_modules = " app.blueprints.rest.v2.alerts "
14- forbidden_modules = " app.datamgmt.alerts "
13+ source_modules = " app.blueprints.rest.v2"
14+ forbidden_modules = " app.datamgmt"
1515allow_indirect_imports = true
1616
1717[[tool .importlinter .contracts ]]
@@ -21,10 +21,24 @@ source_modules = ["app.blueprints.rest.search_routes", "app.blueprints.rest.dim_
2121forbidden_modules = " sqlalchemy"
2222allow_indirect_imports = true
2323
24+ [[tool .importlinter .contracts ]]
25+ name = " Do not import API layer from the business layer"
26+ type = " forbidden"
27+ source_modules = [" app.business.access_controls" , " app.business.assets" ]
28+ forbidden_modules = " app.blueprints.iris_user"
29+ allow_indirect_imports = true
30+
2431[[tool .importlinter .contracts ]]
2532name = " Do not import sqlalchemy from the business layer"
2633type = " forbidden"
2734source_modules = " app.business"
2835forbidden_modules = " sqlalchemy"
2936allow_indirect_imports = true
3037
38+ [[tool .importlinter .contracts ]]
39+ name = " Do not import API layer from the persistence layer"
40+ type = " forbidden"
41+ source_modules = " app.datamgmt.dashboard"
42+ forbidden_modules = " app.blueprints.iris_user"
43+ allow_indirect_imports = true
44+
0 commit comments