mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-04 04:28:58 +00:00
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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user