Skip to content

Commit 7b7cb4c

Browse files
committed
fixes
1 parent 14c4a81 commit 7b7cb4c

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

firebase-dataconnect/ci/notify_issue.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,20 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
import sys
16+
import typing
17+
from collections.abc import Sequence
18+
19+
type ExitCode = int
20+
21+
def main(args: Sequence[str], stdout: typing.TextIO, stderr: typing.TextIO) -> ExitCode:
22+
return 0
23+
24+
if __name__ == "__main__":
25+
try:
26+
exit_code = main(sys.argv, sys.stdout, sys.stderr)
27+
except KeyboardInterrupt:
28+
print("ERROR: application terminated by keyboard interrupt", file=sys.stderr)
29+
exit_code = 1
30+
31+
sys.exit(exit_code)

firebase-dataconnect/ci/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ignore = [
1616
"D100", # Missing docstring in public module
1717
"D211", # no-blank-line-before-class
1818
"D212", # multi-line-summary-second-line
19+
"T201", # print` found
1920
]
2021

2122
[tool.ruff.format]

0 commit comments

Comments
 (0)