Skip to content

Commit e74e8d4

Browse files
committed
configure.go
1 parent 3ba4cea commit e74e8d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

gazelle/python/configure.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ func (py *Configurer) KnownDirectives() []string {
7070
pythonconfig.LabelConvention,
7171
pythonconfig.LabelNormalization,
7272
pythonconfig.GeneratePyiDeps,
73+
pythonconfig.GeneratePyiSrcs,
7374
pythonconfig.ExperimentalAllowRelativeImports,
7475
pythonconfig.GenerateProto,
7576
pythonconfig.PythonResolveSiblingImports,
@@ -242,6 +243,12 @@ func (py *Configurer) Configure(c *config.Config, rel string, f *rule.File) {
242243
log.Fatal(err)
243244
}
244245
config.SetGeneratePyiDeps(v)
246+
case pythonconfig.GeneratePyiSrcs:
247+
v, err := strconv.ParseBool(strings.TrimSpace(d.Value))
248+
if err != nil {
249+
log.Fatal(err)
250+
}
251+
config.SetGeneratePyiSrcs(v)
245252
case pythonconfig.GenerateProto:
246253
v, err := strconv.ParseBool(strings.TrimSpace(d.Value))
247254
if err != nil {

0 commit comments

Comments
 (0)