-
Notifications
You must be signed in to change notification settings - Fork 0
Align spellcheck action with SoftwareDevLabs/SDLC_core #35
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
…om environment values Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit updates the spellcheck GitHub action to align with the configuration from `SoftwareDevLabs/SDLC_core`.
Key changes:
- Replaced the hardcoded `microsoft/terminal@main` with `${{ github.repository }}@${{ github.ref }}` to check the current repository.
- Updated the `if` and `with` conditions to use the correct repository owner (`SoftwareDevLabs`).
- Kept the `ssh_key` commented out as requested.
…tain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| @@ -1,56 +1,96 @@ | |||
| # DeepAgent usage | |||
| # DeepAgent Usage | |||
Check failure
Code scanning / check-spelling
Check File Path Error documentation
| @@ -0,0 +1,71 @@ | |||
| """ | |||
Check failure
Code scanning / check-spelling
Check File Path Error
This comment has been minimized.
This comment has been minimized.
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 aligns the spellcheck GitHub action configuration with the correct repository owner (SoftwareDevLabs/SDLC_core) and includes significant improvements to the deepagent module. The changes modernize the LangChain integration, add comprehensive configuration support, and expand the project's infrastructure with new workflows and development tools.
- Updates spellcheck workflow to use dynamic repository parameters and correct owner
- Modernizes deepagent.py to use current LangChain APIs with session-based memory
- Adds comprehensive development infrastructure including workflows, Docker support, and documentation
Reviewed Changes
Copilot reviewed 128 out of 129 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/spelling2.yml | Updates spellcheck action to use dynamic repository parameters instead of hardcoded Microsoft/terminal references |
| src/agents/deepagent.py | Major refactor to use modern LangChain APIs, adds YAML configuration support and session-based memory |
| test/unit/test_deepagent*.py | Updates tests to work with new agent architecture and MockAgent interface |
| Multiple workflow files | Adds new GitHub Actions workflows for documentation, security scanning, and development tools |
| Infrastructure files | Adds Docker support, requirements files, and comprehensive project documentation |
| self.last_input = input_data | ||
| return f"dry-run-echo:{input_data}" | ||
|
|
||
| def invoke(self, input_dict: dict, config: dict): |
Copilot
AI
Sep 9, 2025
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.
Duplicate method definition with different parameter names. The first definition will be overwritten by the second.
| return f"dry-run-echo:{input_data}" | ||
|
|
||
| def invoke(self, input_dict: dict, config: dict): | ||
| def invoke(self, input: dict, config: dict): |
Copilot
AI
Sep 9, 2025
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.
Duplicate method definition with different parameter names. The first definition will be overwritten by the second.
|
|
||
| def main(): | ||
| """Main function to run the agent from the command line.""" | ||
| parser = argparse.ArgumentParser() |
Copilot
AI
Sep 9, 2025
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.
The argparse module is imported in the if __name__ == '__main__': block but used in the main() function before the import. Move the import to the top of the file.
| dry_run_env = os.getenv("DRY_RUN", "false").lower() in ("1", "true", "yes") | ||
| dry_run = dry_run_env or bool(args.dry_run) | ||
| # Load environment variables from .env file | ||
| load_dotenv(os.path.join(os.path.dirname(__file__), ".env")) |
Copilot
AI
Sep 9, 2025
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.
The load_dotenv function is imported in the if __name__ == '__main__': block but used in the main() function before the import. Move the import to the top of the file.
| response = agent.run(prompt) | ||
|
|
||
| with open(args.output_file, 'w') as f: | ||
| f.write(response.get('output', '')) |
Copilot
AI
Sep 9, 2025
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.
The code assumes response is a dictionary, but based on the agent's run method, it returns the result of agent.invoke() which may not always have an 'output' key. This could fail if the response structure is different.
@check-spelling-bot Report🔴 Please reviewSee the 📂 files view, the 📜action log, or 📝 job summary for details.Unrecognized words (24549)Truncated, please see the job summary, log, or artifact if available. These words are not needed and should be removedTruncated, please see the job summary, log, or artifact if available. Some files were automatically ignored 🙈These sample patterns would exclude them: You should consider excluding directory paths (e.g. You should consider adding them to: File matching is via Perl regular expressions. To check these files, more of their words need to be in the dictionary than not. You can use Script unavailableTruncated, please see the job summary, log, or artifact if available. OR To have the bot accept them for you, comment in the PR quoting the following line: Forbidden patterns 🙅 (42)In order to address this, you could change the content to not match the forbidden patterns (comments before forbidden patterns may help explain why they're forbidden), add patterns for acceptable instances, or adjust the forbidden patterns themselves. These forbidden patterns matched content: Should be
|
| ❌ Errors, Warnings, and Notices | Count |
|---|---|
| 317 | |
| ℹ️ candidate-pattern | 52 |
| ❌ check-file-path | 9798 |
| ❌ forbidden-pattern | 1749 |
| 1 | |
| 137 | |
| ❌ slow-file | 1 |
| 87 |
See ❌ Event descriptions for more information.
✏️ Contributor please read this
By default the command suggestion will generate a file named based on your commit. That's generally ok as long as you add the file to your commit. Someone can reorganize it later.
If the listed items are:
- ... misspelled, then please correct them instead of using the command.
- ... names, please add them to
.github/actions/spelling/allow/names.txt. - ... APIs, you can add them to a file in
.github/actions/spelling/allow/. - ... just things you're using, please add them to an appropriate file in
.github/actions/spelling/expect/. - ... tokens you only need in one place and shouldn't generally be used, you can add an item in an appropriate file in
.github/actions/spelling/patterns/.
See the README.md in each directory for more information.
🔬 You can test your commits without appending to a PR by creating a new branch with that extra change and pushing it to your fork. The check-spelling action will run in response to your push -- it doesn't require an open pull request. By using such a branch, you can limit the number of typos your peers see you make. 😉
If the flagged items are 🤯 false positives
If items relate to a ...
-
binary file (or some other file you wouldn't want to check at all).
Please add a file path to the
excludes.txtfile matching the containing file.File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.
^refers to the file's path from the root of the repository, so^README\.md$would exclude README.md (on whichever branch you're using). -
well-formed pattern.
If you can write a pattern that would match it,
try adding it to thepatterns.txtfile.Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.
Note that patterns can't match multiline strings.
This change updates the spellcheck GitHub action to use a dynamic
spell_check_thisparameter and the correct repository owner, as requested by the user.