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

all: Improve make lint command #25344

Merged
merged 2 commits into from
Aug 24, 2024
Merged

all: Improve make lint command #25344

merged 2 commits into from
Aug 24, 2024

Conversation

cbornet
Copy link
Collaborator

@cbornet cbornet commented Aug 13, 2024

  • Removed ruff check --select I as I is already selected and checked in the main ruff check command
  • Added checks for non-empty PYTHON_FILES
  • Run ruff check only on PYTHON_FILES

@efriis efriis added the partner label Aug 13, 2024
@efriis efriis self-assigned this Aug 13, 2024
Copy link

vercel bot commented Aug 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Aug 24, 2024 1:16am

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. 🤖:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs labels Aug 13, 2024
@cbornet cbornet closed this Aug 13, 2024
@cbornet cbornet reopened this Aug 13, 2024
@cbornet cbornet force-pushed the make-lint branch 5 times, most recently from 5083c2b to a9a31dc Compare August 16, 2024 11:06
@cbornet
Copy link
Collaborator Author

cbornet commented Aug 16, 2024

It seems one of the CI runner is out of memory.
Can sonething be done about it ?

@cbornet cbornet changed the title [all] Improve make lint command all: Improve make lint command Aug 22, 2024
@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Aug 24, 2024
@efriis efriis requested a review from baskaryan August 24, 2024 01:19
poetry run ruff format $(PYTHON_FILES) --diff
poetry run ruff --select I $(PYTHON_FILES)
mkdir -p $(MYPY_CACHE); poetry run mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
[ "$(PYTHON_FILES)" = "" ] || poetry run ruff $(PYTHON_FILES)
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this be run ruff check ...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, it think it should.
I can open another PR for it.

@efriis
Copy link
Member

efriis commented Aug 24, 2024

bypassing ai21 - known issue in their underlying sdk

@efriis efriis merged commit 038c287 into langchain-ai:master Aug 24, 2024
222 of 249 checks passed
@cbornet cbornet deleted the make-lint branch August 24, 2024 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm PR looks good. Use to confirm that a PR is ready for merging. 🤖:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs partner size:L This PR changes 100-499 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants