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 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
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 = [
16
16
" D100" , # Missing docstring in public module
17
17
" D211" , # no-blank-line-before-class
18
18
" D212" , # multi-line-summary-second-line
19
+ " T201" , # print` found
19
20
]
20
21
21
22
[tool .ruff .format ]
You can’t perform that action at this time.
0 commit comments