Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref: Add ruff rules for Pathlib (PTH) #4035

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

cbornet
Copy link
Collaborator

@cbornet cbornet commented Oct 6, 2024

Add ruff rules for Pathlib (PTH)

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Oct 6, 2024
@cbornet cbornet requested a review from ogabrielluiz October 6, 2024 23:34
@dosubot dosubot bot added the python Pull requests that update Python code label Oct 6, 2024
@@ -53,7 +55,7 @@ def build_vector_store(self) -> Redis:
documents.append(_input.to_lc_document())
else:
documents.append(_input)
with open("docuemnts.txt", "w") as f:
with Path("docuemnts.txt").open("w") as f:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo in file name but I'm not sure of the impact if we change it...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like this is not being used anywhere

Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-4035.dmtpw4p5recq1.amplifyapp.com

@cbornet cbornet force-pushed the ruff-rules-pth branch 3 times, most recently from 7c24564 to ab032a0 Compare October 6, 2024 23:50
@cbornet cbornet changed the title Add ruff rules for Pathlib (PTH) ref: Add ruff rules for Pathlib (PTH) Oct 6, 2024
Copy link
Contributor

@ogabrielluiz ogabrielluiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Oct 7, 2024
@cbornet cbornet enabled auto-merge (squash) October 7, 2024 11:54
@cbornet cbornet merged commit a021009 into langflow-ai:main Oct 7, 2024
28 checks passed
@cbornet cbornet deleted the ruff-rules-pth branch October 7, 2024 12:24
jordanrfrazier pushed a commit that referenced this pull request Oct 7, 2024
Add ruff rules for Pathlib (PTH)
diogocabral pushed a commit to headlinevc/langflow that referenced this pull request Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer python Pull requests that update Python code size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants