Skip to content

Commit 7397be6

Browse files
committed
removing-serial
1 parent 98fe596 commit 7397be6

File tree

3 files changed

+24
-44
lines changed

3 files changed

+24
-44
lines changed

pylint/checkers/method_args.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ class MethodArgsChecker(BaseChecker):
5252
"requests.api.post",
5353
"requests.api.put",
5454
"requests.api.request",
55-
"serial.serialcli.Serial",
5655
),
5756
"type": "csv",
5857
"metavar": "<comma separated list>",

tests/functional/m/missing/missing_timeout.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# pylint: disable=consider-using-with,import-error,no-member,no-name-in-module,reimported
44

55
import requests
6-
import serial
7-
import serial as serial_r
86
from requests import (
97
delete,
108
delete as delete_r,
@@ -23,7 +21,6 @@
2321
request,
2422
request as request_r,
2523
)
26-
from serial import Serial, Serial as Serial_r
2724

2825
# requests without timeout
2926
requests.delete("http://localhost") # [missing-timeout]
@@ -80,15 +77,3 @@
8077
post("http://localhost", timeout=10)
8178
put("http://localhost", timeout=10)
8279
request("call", "http://localhost", timeout=10)
83-
84-
# Serial without timeout
85-
serial.Serial("/dev/ttyS1") # [missing-timeout]
86-
serial_r.Serial("/dev/ttyS1") # [missing-timeout]
87-
Serial("/dev/ttyS1") # [missing-timeout]
88-
Serial_r("/dev/ttyS1") # [missing-timeout]
89-
90-
# serial valid cases
91-
serial.Serial("/dev/ttyS1", timeout=10)
92-
serial_r.Serial("/dev/ttyS1", timeout=10)
93-
Serial("/dev/ttyS1", timeout=10)
94-
Serial_r("/dev/ttyS1", timeout=10)
Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,24 @@
1-
missing-timeout:27:0:27:35::Missing timeout for method 'requests.delete' can cause your program to hang indefinitely:INFERENCE
2-
missing-timeout:28:0:28:32::Missing timeout for method 'requests.get' can cause your program to hang indefinitely:INFERENCE
3-
missing-timeout:29:0:29:33::Missing timeout for method 'requests.head' can cause your program to hang indefinitely:INFERENCE
4-
missing-timeout:30:0:30:36::Missing timeout for method 'requests.options' can cause your program to hang indefinitely:INFERENCE
5-
missing-timeout:31:0:31:34::Missing timeout for method 'requests.patch' can cause your program to hang indefinitely:INFERENCE
6-
missing-timeout:32:0:32:33::Missing timeout for method 'requests.post' can cause your program to hang indefinitely:INFERENCE
7-
missing-timeout:33:0:33:32::Missing timeout for method 'requests.put' can cause your program to hang indefinitely:INFERENCE
8-
missing-timeout:34:0:34:44::Missing timeout for method 'requests.request' can cause your program to hang indefinitely:INFERENCE
9-
missing-timeout:36:0:36:28::Missing timeout for method 'delete_r' can cause your program to hang indefinitely:INFERENCE
10-
missing-timeout:37:0:37:25::Missing timeout for method 'get_r' can cause your program to hang indefinitely:INFERENCE
11-
missing-timeout:38:0:38:26::Missing timeout for method 'head_r' can cause your program to hang indefinitely:INFERENCE
12-
missing-timeout:39:0:39:29::Missing timeout for method 'options_r' can cause your program to hang indefinitely:INFERENCE
13-
missing-timeout:40:0:40:27::Missing timeout for method 'patch_r' can cause your program to hang indefinitely:INFERENCE
14-
missing-timeout:41:0:41:26::Missing timeout for method 'post_r' can cause your program to hang indefinitely:INFERENCE
15-
missing-timeout:42:0:42:25::Missing timeout for method 'put_r' can cause your program to hang indefinitely:INFERENCE
16-
missing-timeout:43:0:43:37::Missing timeout for method 'request_r' can cause your program to hang indefinitely:INFERENCE
17-
missing-timeout:45:0:45:26::Missing timeout for method 'delete' can cause your program to hang indefinitely:INFERENCE
18-
missing-timeout:46:0:46:23::Missing timeout for method 'get' can cause your program to hang indefinitely:INFERENCE
19-
missing-timeout:47:0:47:24::Missing timeout for method 'head' can cause your program to hang indefinitely:INFERENCE
20-
missing-timeout:48:0:48:27::Missing timeout for method 'options' can cause your program to hang indefinitely:INFERENCE
21-
missing-timeout:49:0:49:25::Missing timeout for method 'patch' can cause your program to hang indefinitely:INFERENCE
22-
missing-timeout:50:0:50:24::Missing timeout for method 'post' can cause your program to hang indefinitely:INFERENCE
23-
missing-timeout:51:0:51:23::Missing timeout for method 'put' can cause your program to hang indefinitely:INFERENCE
24-
missing-timeout:52:0:52:35::Missing timeout for method 'request' can cause your program to hang indefinitely:INFERENCE
25-
missing-timeout:83:0:83:27::Missing timeout for method 'serial.Serial' can cause your program to hang indefinitely:INFERENCE
26-
missing-timeout:84:0:84:29::Missing timeout for method 'serial_r.Serial' can cause your program to hang indefinitely:INFERENCE
27-
missing-timeout:85:0:85:20::Missing timeout for method 'Serial' can cause your program to hang indefinitely:INFERENCE
28-
missing-timeout:86:0:86:22::Missing timeout for method 'Serial_r' can cause your program to hang indefinitely:INFERENCE
1+
missing-timeout:26:0:26:35::Missing timeout argument for method 'requests.delete' can cause your program to hang indefinitely:INFERENCE
2+
missing-timeout:27:0:27:32::Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely:INFERENCE
3+
missing-timeout:28:0:28:33::Missing timeout argument for method 'requests.head' can cause your program to hang indefinitely:INFERENCE
4+
missing-timeout:29:0:29:36::Missing timeout argument for method 'requests.options' can cause your program to hang indefinitely:INFERENCE
5+
missing-timeout:30:0:30:34::Missing timeout argument for method 'requests.patch' can cause your program to hang indefinitely:INFERENCE
6+
missing-timeout:31:0:31:33::Missing timeout argument for method 'requests.post' can cause your program to hang indefinitely:INFERENCE
7+
missing-timeout:32:0:32:32::Missing timeout argument for method 'requests.put' can cause your program to hang indefinitely:INFERENCE
8+
missing-timeout:33:0:33:44::Missing timeout argument for method 'requests.request' can cause your program to hang indefinitely:INFERENCE
9+
missing-timeout:35:0:35:28::Missing timeout argument for method 'delete_r' can cause your program to hang indefinitely:INFERENCE
10+
missing-timeout:36:0:36:25::Missing timeout argument for method 'get_r' can cause your program to hang indefinitely:INFERENCE
11+
missing-timeout:37:0:37:26::Missing timeout argument for method 'head_r' can cause your program to hang indefinitely:INFERENCE
12+
missing-timeout:38:0:38:29::Missing timeout argument for method 'options_r' can cause your program to hang indefinitely:INFERENCE
13+
missing-timeout:39:0:39:27::Missing timeout argument for method 'patch_r' can cause your program to hang indefinitely:INFERENCE
14+
missing-timeout:40:0:40:26::Missing timeout argument for method 'post_r' can cause your program to hang indefinitely:INFERENCE
15+
missing-timeout:41:0:41:25::Missing timeout argument for method 'put_r' can cause your program to hang indefinitely:INFERENCE
16+
missing-timeout:42:0:42:37::Missing timeout argument for method 'request_r' can cause your program to hang indefinitely:INFERENCE
17+
missing-timeout:44:0:44:26::Missing timeout argument for method 'delete' can cause your program to hang indefinitely:INFERENCE
18+
missing-timeout:45:0:45:23::Missing timeout argument for method 'get' can cause your program to hang indefinitely:INFERENCE
19+
missing-timeout:46:0:46:24::Missing timeout argument for method 'head' can cause your program to hang indefinitely:INFERENCE
20+
missing-timeout:47:0:47:27::Missing timeout argument for method 'options' can cause your program to hang indefinitely:INFERENCE
21+
missing-timeout:48:0:48:25::Missing timeout argument for method 'patch' can cause your program to hang indefinitely:INFERENCE
22+
missing-timeout:49:0:49:24::Missing timeout argument for method 'post' can cause your program to hang indefinitely:INFERENCE
23+
missing-timeout:50:0:50:23::Missing timeout argument for method 'put' can cause your program to hang indefinitely:INFERENCE
24+
missing-timeout:51:0:51:35::Missing timeout argument for method 'request' can cause your program to hang indefinitely:INFERENCE

0 commit comments

Comments
 (0)