ignore SIM115 and reverse change for it

This commit is contained in:
Lendemor 2024-10-22 15:34:19 +02:00
parent 5d8ed63d7a
commit ad43836bfd
2 changed files with 3 additions and 2 deletions

View File

@ -91,7 +91,7 @@ build-backend = "poetry.core.masonry.api"
[tool.ruff]
target-version = "py39"
lint.select = ["B", "D", "E", "F", "I", "SIM", "W"]
lint.ignore = ["B008", "D203", "D205", "D213", "D401", "D406", "D407", "E501", "F403", "F405", "F541"]
lint.ignore = ["B008", "D203", "D205", "D213", "D401", "D406", "D407", "E501", "F403", "F405", "F541", "SIM115"]
lint.pydocstyle.convention = "google"
[tool.ruff.lint.per-file-ignores]

View File

@ -713,7 +713,8 @@ def download_and_run(url: str, *args, show_status: bool = False, **env):
response.raise_for_status()
# Save the script to a temporary file.
with tempfile.NamedTemporaryFile() as script, open(script.name, "w") as f:
script = tempfile.NamedTemporaryFile()
with open(script.name, "w") as f:
f.write(response.text)
# Run the script.