Skip to content

Conversation

@Jensen246
Copy link
Collaborator

@Jensen246 Jensen246 commented Sep 17, 2025

Description

Motivation and Context

How Has This Been Tested?

  • If you are adding a new feature, test on your own test scripts.

Screenshots of Test Results (if appropriate):

  1. Your own tests:

Types of changes

  • Fix bugs
  • Add new feature
  • Update documentation

📚 Documentation preview 📚: https://RDAgent--1250.org.readthedocs.build/en/1250/

@Jensen246 Jensen246 changed the title add draft for real competition feat: add draft for real competition Sep 17, 2025
@jingyuanlm jingyuanlm marked this pull request as ready for review October 17, 2025 09:24
@Codynunn42
Copy link

You’re facing a CI failure caused by isort in your GitHub Actions workflow, specifically during the lint test docs and build step. Here’s what went wrong and exactly how to fix it.

Issue Summary:

Your workflow fails at this step.

python -m isort --check . -s git_ignore_folder

With this error:

ERROR: /home/runner/work/RD-Agent/RD-Agent/draft/...
make: *** [Makefile:89: isort] Error 1
Error: Process completed with exit code 2.

This means isort detected incorrect import order or formatting, and because --check is used, it exited with a non-zero code instead of auto-fixing.

🛠️ How to Fix It (Step-by-Step)

  1. Run isort locally to auto-fix imports

You can fix this instantly by running:

isort .

Or if you want to target just the draft/ directory:

isort draft/

This will automatically reformat the imports in all .py files.

  1. Verify everything is clean

Once you’ve run the fix:

isort --check .

You should see:

✔ Success: no issues found

  1. Commit the changes

If the command modified files:

git add .
git commit -m "fix: auto-sort imports with isort"
git push

That push will re-trigger your GitHub Actions and should now pass the lint test docs and build step.

  1. (Optional) 🔒 Lock in consistent isort config

Add a .isort.cfg or pyproject.toml in your project root with config like:

[tool.isort]
profile = "black"
line_length = 88
known_third_party = ["numpy", "pandas"]

This ensures team-wide consistency in formatting.

📦 Bonus Tip

If you’re using VSCode, install the isort extension and enable Format on Save for auto-fixes as you code.

✅ Summary

Task
Command
Auto-fix imports
isort .
Verify
isort --check .
Commit & Push
git add . && git commit -m "fix: sort imports" && git push

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants