File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 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 )
Original file line number Diff line number Diff 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 ]
You can’t perform that action at this time.
0 commit comments