ignore SIM115 and reverse change for it
This commit is contained in:
parent
5d8ed63d7a
commit
ad43836bfd
@ -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]
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user