fix: automatically fix issues with ruff (#31897)

* Perform safe automatic fixes instead of only selecting
[isort](https://docs.astral.sh/ruff/rules/#isort-i)
This commit is contained in:
Mason Daugherty
2025-07-07 14:13:10 -04:00
committed by GitHub
parent e686a70ee0
commit 706a66eccd
21 changed files with 24 additions and 23 deletions

View File

@@ -32,7 +32,7 @@ def main():
cwd = "/".join(path.split("/")[:-1])
subprocess.run(
"poetry lock --no-update; poetry install --with lint; poetry run ruff format .; poetry run ruff --select I --fix .",
"poetry lock --no-update; poetry install --with lint; poetry run ruff format .; poetry run ruff --fix .",
cwd=cwd,
shell=True,
capture_output=True,
@@ -74,12 +74,13 @@ def main():
f.write("".join(file_lines))
subprocess.run(
"poetry lock --no-update; poetry install --with lint; poetry run ruff format .; poetry run ruff --select I --fix .",
"poetry lock --no-update; poetry install --with lint; poetry run ruff format .; poetry run ruff --fix .",
cwd=cwd,
shell=True,
capture_output=True,
text=True,
)
if __name__ == "__main__":
main()