Skip to content

Exclude Claude tooling scripts from language statistics.#30

Merged
gustavofreze merged 1 commit into
mainfrom
chore/linguist-php-detection
Jun 27, 2026
Merged

Exclude Claude tooling scripts from language statistics.#30
gustavofreze merged 1 commit into
mainfrom
chore/linguist-php-detection

Conversation

@gustavofreze

Copy link
Copy Markdown
Member

Mark .claude Python scripts as linguist-vendored so GitHub Linguist detects the repository as PHP, and ignore pycache and *.pyc to keep hook caches out of the index. The same change lands in the tiny-blocks-create scaffold templates. Dependency floors for composer-normalize, infection, and phpstan are bumped in the same commit.

Please follow the contributing guidelines.

Summary

What this pull request does.

Related issue

Closes #...

Checklist

  • Tests added or updated.
  • Documentation updated when applicable.
  • composer review passes.
  • composer tests passes.

Mark .claude Python scripts as linguist-vendored so GitHub Linguist
detects the repository as PHP, and ignore __pycache__ and *.pyc to keep
hook caches out of the index. The same change lands in the
tiny-blocks-create scaffold templates. Dependency floors for
composer-normalize, infection, and phpstan are bumped in the same
commit.
Copilot AI review requested due to automatic review settings June 27, 2026 13:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request tunes repository metadata and scaffolding assets so GitHub Linguist reports the project primarily as PHP by vendoring Claude’s Python hook scripts, while also keeping Python bytecode caches out of the index. It also raises the minimum dev-tooling versions to the updated canonical floors used across the tiny-blocks ecosystem.

Changes:

  • Bump require-dev floors for composer-normalize, infection, and phpstan.
  • Mark /.claude/**/*.py as linguist-vendored and ignore __pycache__/ and *.pyc.
  • Mirror the .gitattributes/.gitignore updates into the tiny-blocks-create scaffold assets.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
composer.json Raises dev-tool dependency floors (composer-normalize, infection, phpstan).
.gitignore Ignores Python hook cache artifacts (__pycache__/, *.pyc).
.gitattributes Excludes .claude Python scripts from Linguist language stats via linguist-vendored.
.claude/skills/tiny-blocks-create/assets/config/.gitignore Keeps scaffold templates aligned with new ignore rules for Python caches.
.claude/skills/tiny-blocks-create/assets/config/.gitattributes Keeps scaffold templates aligned with new Linguist vendoring rule.

@gustavofreze gustavofreze merged commit ba45879 into main Jun 27, 2026
8 checks passed
@gustavofreze gustavofreze deleted the chore/linguist-php-detection branch June 27, 2026 13:08
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.

2 participants