File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ ignore = [
2323# High priority fixes
2424 " LOG015" , # Using root logger
2525 " B008" , # function calls in default arg value
26- " A001" , # variable names mask builtins
2726 " PERF203" , # Exception handling in loops
2827
2928# Temporary ignores just for CI until the rules pass then they can be removed
Original file line number Diff line number Diff line change @@ -31,9 +31,11 @@ def __init__(self, qstat_job_line) -> None:
3131 # Job line must have at least 8 tokens
3232 try :
3333 self .id = int (tokens [0 ])
34+
3435 except ValueError :
3536 error_msg = "Could not convert data to an integer."
3637 raise ValueError (error_msg )
38+
3739 self .priority = float (tokens [1 ])
3840 self .name = tokens [2 ]
3941 self .user = tokens [3 ]
@@ -78,12 +80,12 @@ def __init__(self, qstat_job_line) -> None:
7880 self ._ja_tasklist = ja_task_id
7981
8082 def __repr__ (self ) -> str :
81- repr = ["{" ]
83+ repr_str = ["{" ]
8284 for key , value in self .__dict__ .items ():
8385 if key [0 ] != "_" :
84- repr .append (key + "=" + str (value ))
85- repr .append ("}" )
86- return "\n " .join (repr )
86+ repr_str .append (key + "=" + str (value ))
87+ repr_str .append ("}" )
88+ return "\n " .join (repr_str )
8789
8890
8991class JobList :
Original file line number Diff line number Diff line change 11# Copyright lowRISC contributors (OpenTitan project).
22# Licensed under the Apache License, Version 2.0, see LICENSE for details.
33# SPDX-License-Identifier: Apache-2.0
4+
45"""Modes."""
56
67import logging as log
You can’t perform that action at this time.
0 commit comments