Commit 2d1e4af
committed
Avoid running sessions on sources for API repos
API repos are supposed to just ship python files generated from
protocol buffer files. Only a stub __init__.py should be included,
which doesn't really need to be checked.
Allowing checks on the sources for an API repos triggers a lot of issues
when the protocol buffers files are generated, as they don't pass any
checks. An alternative would be to exclude auto-generated files, but
it's not easy because each tool has its own exclusion mechanism, and
some don't even have any (hello darglint), so it is simpler to just skip
testing the stub __init__.py file.
Signed-off-by: Leandro Lucarella <[email protected]>1 parent 28b51c0 commit 2d1e4af
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
| |||
0 commit comments