fix: Align line-length configuration between pyproject.toml and pre-commit#86
Open
hobostay wants to merge 1 commit intozai-org:mainfrom
Open
fix: Align line-length configuration between pyproject.toml and pre-commit#86hobostay wants to merge 1 commit intozai-org:mainfrom
hobostay wants to merge 1 commit intozai-org:mainfrom
Conversation
…ommit The black formatter was configured with line-length=100 in pyproject.toml, but the pre-commit hook was using --line-length=88. This inconsistency could lead to: - Code being formatted differently when run via pre-commit vs. black directly - CI/CD failures if formatting checks use different configurations - Developer confusion about which line length limit is correct This commit updates .pre-commit-config.yaml to use line-length=100 for both black and flake8, matching the pyproject.toml configuration. Changes: - black args: --line-length=88 → --line-length=100 - flake8 args: --max-line-length=88 → --max-line-length=100 This ensures consistent code formatting across all tooling. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix configuration inconsistency between
pyproject.tomland.pre-commit-config.yamlregarding line length limits.Problem
The black formatter was configured with
line-length=100inpyproject.toml, but the pre-commit hooks were using--line-length=88. This inconsistency causes several issues:black --line-length=88) would differ from code formatted directly with black (which readsline-length=100from pyproject.toml)Solution
Update
.pre-commit-config.yamlto useline-length=100for both black and flake8, matching thepyproject.tomlconfiguration.Changes Made
Impact
Test plan
This is a configuration-only fix with no code changes. The change ensures:
black .locally will produce the same results as pre-commit🤖 Generated with Claude Code