You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What problem or use case are you trying to solve?
The goal is to implement an automated linting feature that executes whenever a file edit is made. This aims to catch errors earlier in the development process to improve accuracy and efficiency.
Describe the UX of the solution the user wants
Automatically run a linter script, such as openhands_lint.sh, after every file edit if the script exists.
User's thoughts on the technical implementation?
The approach could leverage existing configurations used by developers, such as the pre-commit-config.yml, to ensure consistency between human and automated edits.
Describe the alternatives considered
Catch errors at the commit stage was considered, but executing the linting post-edit is more advantageous to catch errors sooner.
Additional context
This feature will align with existing practices, like the swe-agent using flake8 for Python files, which currently rejects edits not passing lint checks.
What problem or use case are you trying to solve?
The goal is to implement an automated linting feature that executes whenever a file edit is made. This aims to catch errors earlier in the development process to improve accuracy and efficiency.
Describe the UX of the solution the user wants
Automatically run a linter script, such as
openhands_lint.sh
, after every file edit if the script exists.User's thoughts on the technical implementation?
The approach could leverage existing configurations used by developers, such as the
pre-commit-config.yml
, to ensure consistency between human and automated edits.Describe the alternatives considered
Catch errors at the commit stage was considered, but executing the linting post-edit is more advantageous to catch errors sooner.
Additional context
This feature will align with existing practices, like the
swe-agent
usingflake8
for Python files, which currently rejects edits not passing lint checks.Issue Created By: Graham Neubig on Slack
Link to Slack Thread: Slack Thread
The text was updated successfully, but these errors were encountered: