-
Notifications
You must be signed in to change notification settings - Fork 126
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
chore: update ruff linting scripts and settings #1105
Conversation
@@ -15,7 +15,7 @@ defaults: | |||
working-directory: integrations/anthropic | |||
|
|||
concurrency: | |||
group: cohere-${{ github.head_ref }} | |||
group: anthropic-${{ github.head_ref }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated: I noticed that Anthropic tests were not running due to the wrong concurrency group.
@@ -7,6 +7,7 @@ | |||
from haystack.components.generators.utils import print_streaming_chunk | |||
from haystack.dataclasses import ChatMessage, ChatRole, StreamingChunk | |||
from haystack.utils import Secret | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this intentional? It added extra files in PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, related to formatting...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Niiiice! 🚀
* updates * more changes * lint * more changes * more changes * mmore and more changes * right concurrency group for anthropic * apply suggestions
Proposed Changes:
I initially noticed that the script
hatch run lint:fmt
was not working -> I replacedruff --fix
withruff check --fix
.Then I started noticing some warnings like
warning: The top-level linter settings are deprecated in favour of their counterparts in the
lintsection...
-> I changed all of them in pyproject files.I also noticed that we introduced scripts like this:
style = ["ruff check {args:. --exclude tests/}",...]
in recent PRs.tool.ruff.exclude = ["tests"]
)-> I removed these expressions and, only where necessary (too much work to adopt linting), replaced them with the appropriate settings in the pyproject file.
How did you test it?
CI, local tests.
Checklist
fix:
,feat:
,build:
,chore:
,ci:
,docs:
,style:
,refactor:
,perf:
,test:
.