-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrules.yaml
More file actions
158 lines (156 loc) · 5.33 KB
/
Copy pathrules.yaml
File metadata and controls
158 lines (156 loc) · 5.33 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# Generated Python projects require Python >= 3.11.
# (The rules schema currently only accepts a `cli` key under `engines`;
# track schema support for a `python` engine constraint upstream before
# adding it here.)
engines:
cli: ">= v0.38.0"
features:
- name: api
scopes:
- match: system
documents:
- source: "utils/eventhook.py"
target: "utils/eventhook.py"
raw: true
- source: "utils/base_types.py"
target: "utils/base_types.py"
raw: true
- source: "utils/__init__.py"
target: "utils/__init__.py"
raw: true
- match: module
prefix: "{{snake .Module.Name}}/"
documents:
- source: "__init__.py.tpl"
target: "__init__.py"
- source: "api/__init__.py.tpl"
target: "api/__init__.py"
- source: "api/api.py.tpl"
target: "api/api.py"
- name: test_helpers
scopes:
- match: module
prefix: "{{snake .Module.Name}}/"
documents:
- source: "test_helpers/__init__.py"
target: "test_helpers/__init__.py"
raw: true
- source: "test_helpers/test_struct.py.tpl"
target: "test_helpers/test_struct.py"
- name: scaffold
requires: [api]
scopes:
- match: system
documents:
- source: scaffold/requirements.txt.tpl
target: requirements.txt
preserve: true
- source: scaffold/Makefile
target: Makefile
preserve: true
raw: true
- source: scaffold/README.md
target: README.md
preserve: true
raw: true
- match: module
prefix: "{{snake .Module.Name}}/impl/"
documents:
- source: "scaffold/interface/__init__.py.tpl"
target: "__init__.py"
preserve: true
- match: interface
prefix: "{{snake .Module.Name}}/impl/"
documents:
- source: "scaffold/interface/interface.py.tpl"
target: "{{snake .Interface.Name}}.py"
preserve: true
- source: "scaffold/interface/test.py.tpl"
target: "test_{{snake .Interface.Name}}.py"
preserve: true
- name: olink
requires: [api, scaffold, test_helpers]
scopes:
- match: system
documents:
- source: "apigear/__init__.py"
target: "apigear/__init__.py"
raw: true
- source: "apigear/olink/__init__.py"
target: "apigear/olink/__init__.py"
raw: true
- source: "apigear/olink/client.py"
target: "apigear/olink/client.py"
raw: true
- source: "apigear/olink//remoteendpoint.py"
target: "apigear/olink/remoteendpoint.py"
raw: true
- source: "examples/olink/OLINK_README.md"
target: "examples/olink/OLINK_README.md"
raw: true
- source: "examples/olink/client.py.tpl"
target: "examples/olink/client.py"
preserve: true
- source: "examples/olink/server.py.tpl"
target: "examples/olink/server.py"
preserve: true
- match: module
prefix: "{{snake .Module.Name}}/olink/"
documents:
- source: "olink/__init__.py.tpl"
target: "__init__.py"
- source: "olink/sources.py.tpl"
target: "sources.py"
- source: "olink/sinks.py.tpl"
target: "sinks.py"
- match: interface
prefix: "{{snake .Module.Name}}/olink/"
documents:
- source: "olink/test.py.tpl"
target: "test_olink_{{snake .Interface.Name}}.py"
preserve: true
- name: mqtt
requires: [api, scaffold, test_helpers]
scopes:
- match: system
documents:
- source: "apigear/__init__.py"
target: "apigear/__init__.py"
raw: true
- source: "apigear/mqtt/__init__.py"
target: "apigear/mqtt/__init__.py"
raw: true
- source: "apigear/mqtt/client.py"
target: "apigear/mqtt/client.py"
raw: true
- source: "apigear/mqtt//service.py"
target: "apigear/mqtt/service.py"
raw: true
- source: "apigear/mqtt//base.py"
target: "apigear/mqtt/base.py"
raw: true
- source: "apigear/mqtt/test_base.py"
target: "apigear/mqtt/test_base.py"
raw: true
- source: "conftest.py"
target: "conftest.py"
raw: true
preserve: true
- match: module
documents:
- source: "mqtt/__init__.py.tpl"
target: "{{snake .Module.Name}}/mqtt/__init__.py"
- source: "mqtt/sinks.py.tpl"
target: "{{snake .Module.Name}}/mqtt/sinks.py"
- source: "mqtt/sources.py.tpl"
target: "{{snake .Module.Name}}/mqtt/sources.py"
- source: "examples/mqtt/client.py.tpl"
target: "examples/mqtt/client.py"
- source: "examples/mqtt/server.py.tpl"
target: "examples/mqtt/server.py"
- match: interface
prefix: "{{snake .Module.Name}}/mqtt/"
documents:
- source: "mqtt/test.py.tpl"
target: "test_mqtt_{{snake .Interface.Name}}.py"
preserve: true