-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.importlinter
51 lines (40 loc) · 1.21 KB
/
.importlinter
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[importlinter]
root_package = django2pydantic
include_external_packages = True
[importlinter:contract:layers]
name = Lower layers shall not import from higher layers
type = layers
containers =
django2pydantic
layers =
handlers
registry
schema
ignore_imports =
django2pydantic.registry -> django2pydantic.handlers.base
[importlinter:contract:tests-restrictions]
name = Source code shall not import anything from tests
type = forbidden
source_modules =
django2pydantic
forbidden_modules =
tests
[importlinter:contract:independence-contract]
name = Handlers shall be independent
type = independence
modules =
django2pydantic.handlers.auto
django2pydantic.handlers.base
django2pydantic.handlers.boolean
django2pydantic.handlers.file
django2pydantic.handlers.json
django2pydantic.handlers.network
django2pydantic.handlers.numbers
django2pydantic.handlers.property
django2pydantic.handlers.relational
django2pydantic.handlers.text
django2pydantic.handlers.time
ignore_imports =
django2pydantic.handlers.* -> django2pydantic.handlers.base
django2pydantic.handlers.relational -> django2pydantic.registry
django2pydantic.registry -> django2pydantic.handlers.base