-
Notifications
You must be signed in to change notification settings - Fork 10
Enforce linting and fix all existing errors. #130
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
Conversation
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.
Pull request overview
This pull request updates the copyright notice regex pattern in the Ruff linter configuration to match the specification documented in CLAUDE.md. The change enforces the two-line Microsoft MIT License copyright header format instead of the previous single-line "All rights reserved" format.
Changes:
- Updated
notice-rgxpattern in[tool.ruff.lint.flake8-copyright]to match the two-line copyright header format specified in CLAUDE.md - Updated the configuration comment to reference the CLAUDE.md specification
…r context on exceptions
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.
Pull request overview
Copilot reviewed 39 out of 39 changed files in this pull request and generated 11 comments.
tests/observability/extensions/semantickernel/test_wrapper_semantic_kernel.py
Outdated
Show resolved
Hide resolved
tests/observability/extensions/openai/test_wrapper_openaiagents.py
Outdated
Show resolved
Hide resolved
tests/observability/extensions/langchain/test_wrapper_langchain.py
Outdated
Show resolved
Hide resolved
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.
Pull request overview
Copilot reviewed 107 out of 107 changed files in this pull request and generated 1 comment.
...bservability-core/microsoft_agents_a365/observability/core/trace_processor/span_processor.py
Outdated
Show resolved
Hide resolved
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.
Pull request overview
Copilot reviewed 107 out of 107 changed files in this pull request and generated no new comments.
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
Linting errors were being ignored due to continue-on-error being set to true for the linting step of the PR workflow.
When correcting that, we discovered a number of issues.
The format of copyright headers was a known issue -
pyproject.tomlwas specifying the old format whileCLAUDE.mdhad the correct format. When fixingpyproject.toml, we saw some errors related to copyright headers - less than 20 files that needed fixing. However, Claude had mentioned there were over 100 files that needed changing. With some additional prompting, we found issues with how the linting was invoked - led to a fix to the PR workflow - as well as missing information in the package-specificpyproject.tomlfiles. After fixing those things we were able to run linting correctly and we fixed all the copyright headers.