diff --git a/pyproject.toml b/pyproject.toml index d79a4d314..6844bc096 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,7 +67,8 @@ exclude_lines = [ [tool.ruff] # UP006: Minimum Python 3.9 # UP007, UP038: Minimum Python 3.10 -ignore = ['N818', 'UP006', 'UP007', 'UP038'] +# UP022: Minimum Python 3.7 +ignore = ['N818', 'UP006', 'UP007', 'UP038', 'UP022'] select = ['E', 'F', 'I', 'N', 'W', 'UP'] line-length = 79 diff --git a/setup.py b/setup.py index 2d084d1ef..e1adff269 100644 --- a/setup.py +++ b/setup.py @@ -101,7 +101,8 @@ except: # noqa: E722 # If for any reason `rustc --version` fails, silently ignore it rustc_output = subprocess.run( ["rustc", "--version"], - capture_output=True, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, timeout=0.5, encoding="utf8", check=True,