Skip to content

Conversation

Copy link

Copilot AI commented Aug 14, 2025

Plan to fix isort/black line length conflict:

  • Explore repository structure and understand the issue
  • Identify configuration files (.pre-commit-config.yaml and pyproject.toml)
  • Confirm the issue: isort defaults to 79 chars, black defaults to 88 chars
  • Create test case demonstrating the conflict
  • Add [tool.isort] configuration to pyproject.toml with line_length = 88
  • Test that the configuration resolves the conflict
  • Verify both tools are satisfied with current codebase
  • Run tests to ensure no regressions

Issue: isort and black have conflicting line length defaults (79 vs 88 characters), causing pre-commit failures when both tools format the same import lines differently.

Solution: Configure isort's line_length to match black's default of 88 characters in pyproject.toml.

Testing: Verified that with the new configuration:

  • Lines between 79-88 characters are no longer broken by isort
  • Both tools produce compatible formatting results
  • All existing tests pass
  • Current codebase satisfies both linters

Fixes #14.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copy link
Author

Copilot AI commented Aug 14, 2025

@HirokiHamaguchi 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

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.

Conflict between isort and black due to different line lengths

2 participants