Skip to content

Commit 25a688b

Browse files
bokelleyclaude
andcommitted
fix: allow black to format _generated.py for CI consistency
The CI generates the file and black formats it, but we were excluding it from black formatting locally. This caused drift between local and CI. Changes: - Removed _generated.py from black exclude in pyproject.toml - Removed _generated.py from black exclude in pre-commit config - Regenerated file with black formatting applied This ensures local generation matches CI generation: - Multi-line imports when > 100 chars - One export per line in __all__ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2040d6c commit 25a688b

File tree

3 files changed

+477
-99
lines changed

3 files changed

+477
-99
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ repos:
1010
- id: black
1111
language_version: python3.11
1212
args: [--line-length=100]
13-
exclude: ^src/adcp/types/_generated\.py$
1413

1514
# Ruff linting (ignoring line-length for now - black handles it)
1615
- repo: https://github.com/astral-sh/ruff-pre-commit

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ adcp = ["py.typed", "ADCP_VERSION"]
6666
[tool.black]
6767
line-length = 100
6868
target-version = ["py310", "py311", "py312"]
69-
extend-exclude = "/(_generated|tasks)\\.py$"
69+
extend-exclude = "/(tasks)\\.py$"
7070

7171
[tool.ruff]
7272
line-length = 100

0 commit comments

Comments
 (0)