Skip to content

ci: Speed up pylint GitHub Action#5828

Merged
masci merged 1 commit intodeepset-ai:mainfrom
cclauss:speed-up-pylint
Sep 16, 2023
Merged

ci: Speed up pylint GitHub Action#5828
masci merged 1 commit intodeepset-ai:mainfrom
cclauss:speed-up-pylint

Conversation

@cclauss
Copy link
Copy Markdown
Contributor

@cclauss cclauss commented Sep 15, 2023

Related Issues

Proposed Changes:

As discussed at #5771 (comment) the current pylint GitHub Action builds all haystack which is not required for lining with pylint. This pull request eliminates unneeded steps so that pylint results are returned in seconds (14 sec. for 50+ Python files modified), instead of 7 to 11 minutes.

How did you test it?

Run ruff --select=UP --fix . to modify 50+ Python files and ensure pylint runs correctly.

Notes for the reviewer

Checklist

Copy link
Copy Markdown
Contributor

@masci masci left a comment

Choose a reason for hiding this comment

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

Thanks!

@masci masci merged commit d49c86c into deepset-ai:main Sep 16, 2023
cclauss added a commit to cclauss/haystack that referenced this pull request Sep 16, 2023
cclauss added a commit to cclauss/haystack that referenced this pull request Sep 16, 2023
@cclauss cclauss deleted the speed-up-pylint branch September 16, 2023 15:21
cclauss added a commit to cclauss/haystack that referenced this pull request Sep 16, 2023
masci pushed a commit that referenced this pull request Sep 18, 2023
masci added a commit that referenced this pull request Sep 20, 2023
* ci: Simplify Python code with ruff rules SIM

* Revert #5828

* ruff --select=I --fix haystack/modeling/infer.py

---------

Co-authored-by: Massimiliano Pippi <mpippi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix linting.yml workflow installing all Haystack dependencies even if not necessary

2 participants