Skip to content

style: switch import granularity from "crate" to "module"#435

Merged
KSXGitHub merged 1 commit into
masterfrom
claude/cool-goodall-28Fko
May 29, 2026
Merged

style: switch import granularity from "crate" to "module"#435
KSXGitHub merged 1 commit into
masterfrom
claude/cool-goodall-28Fko

Conversation

@KSXGitHub
Copy link
Copy Markdown
Owner

@KSXGitHub KSXGitHub commented May 29, 2026

Resolves #432.

Switches perfectionist::import_granularity from "crate" to "module".

  • Set style = "module" in dylint.toml and drop the temporary comment.
  • Reformat the affected use statements across the codebase so imports are merged per module instead of being collapsed per crate.
  • Update the import-organization guidance in CONTRIBUTING.md and the template/ai-instructions/shared.md source, and regenerate CLAUDE.md, AGENTS.md, and .github/copilot-instructions.md.

Set perfectionist::import_granularity to "module" in dylint.toml and
reformat the affected use statements throughout the codebase so that
imports are merged per module rather than collapsed per crate. Update
the import-organization guidance in CONTRIBUTING.md and the generated
AI-instruction files accordingly.

https://claude.ai/code/session_01JJJRc2hmtFiByBeCZnVsoF
@github-actions
Copy link
Copy Markdown

Performance Regression Reports

commit: 51d7399

There are no regressions.

@KSXGitHub KSXGitHub marked this pull request as ready for review May 29, 2026 14:35
@KSXGitHub KSXGitHub merged commit de2d681 into master May 29, 2026
15 checks passed
@KSXGitHub KSXGitHub deleted the claude/cool-goodall-28Fko branch May 29, 2026 14:36
KSXGitHub pushed a commit that referenced this pull request May 29, 2026
Reconcile with the import-granularity switch to `module` (#435), which
supersedes this branch's interim `crate`-granularity documentation. The
single-letter test-fixtures guidance fix is retained.

# Conflicts:
#	.github/copilot-instructions.md
#	AGENTS.md
#	CLAUDE.md
#	CONTRIBUTING.md
#	template/ai-instructions/shared.md
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.

Change import_granularity style from crate to module

2 participants