Skip to content

Commit cbade64

Browse files
authored
STYLE enable pylint: subprocess-run-check (#49781)
* STYLE enable pylint: subprocess-run-check * STYLE enable pylint: subprocess-run-check II
1 parent 42bb8fe commit cbade64

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

asv_bench/benchmarks/package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def time_import(self):
1111
# measurement of the import time we actually care about,
1212
# without the subprocess or interpreter overhead
1313
cmd = [sys.executable, "-X", "importtime", "-c", "import pandas as pd"]
14-
p = subprocess.run(cmd, stderr=subprocess.PIPE)
14+
p = subprocess.run(cmd, stderr=subprocess.PIPE, check=True)
1515

1616
line = p.stderr.splitlines()[-1]
1717
field = line.split(b"|")[-2].strip()

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ disable = [
146146
"self-assigning-variable",
147147
"self-cls-assignment",
148148
"signature-differs",
149-
"subprocess-run-check",
150149
"super-init-not-called",
151150
"try-except-raise",
152151
"undefined-loop-variable",

scripts/run_autotyping.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def main(argv: Sequence[str] | None = None) -> None:
2828
*args.paths,
2929
"--aggressive",
3030
],
31+
check=True,
3132
)
3233
sys.exit(output.returncode)
3334

scripts/validate_docstrings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def validate_pep8(self):
211211
file.write(content)
212212
file.flush()
213213
cmd = ["python", "-m", "flake8", "--quiet", "--statistics", file.name]
214-
response = subprocess.run(cmd, capture_output=True, text=True)
214+
response = subprocess.run(cmd, capture_output=True, check=False, text=True)
215215
stdout = response.stdout
216216
stdout = stdout.replace(file.name, "")
217217
messages = stdout.strip("\n")

0 commit comments

Comments
 (0)