Skip to content

[ci] exclude more files from biome config - #7293

Merged
jameslamb merged 1 commit into
masterfrom
ci/biome-exclusions
May 24, 2026
Merged

jameslamb merged 1 commit into
masterfrom
ci/biome-exclusions

Conversation

@jameslamb

Copy link
Copy Markdown
Member

Description

  • adds a few more exclusions to biome configuration
  • replaces {dir}/* with {dir}/ in .gitignore
    • the form without /* is stronger, because it excludes the entire directory instead of just the files at its first level

Details

In the last couple days, I've seen pre-commit run --all-files emitting tons of errors from biome, like this:

/Users/jlamb/repos/LightGBM/.lgb-dev/lib/python3.12/site-packages/distributed/http/static/js/anime.min.js project  INTERNAL  ━━━━━━━━━━
  ⚠ Biome encountered an unusually large amount of types which exceeded the limit of 200,000.
    Either you are analyzing very large files (did you make sure to exclude your build/ or dist/ folder?), or you've encountered a bug in Biome.

Those came from 2 sources:

  • I'd built the {pkgdown} site locally, which wrote a ton of JavaScript files in R-package/docs
  • started using virtual environments created with python -m venv, and installed some packages which vendor JavaScript files (like distributed)

The exclusions added to biome.json in this PR tell biome to ignore those directories.

@jameslamb

Copy link
Copy Markdown
Member Author

Thanks as always for the review @borchero , it's nice to move these tiny things along quickly 😊

@jameslamb
jameslamb merged commit f35eb13 into master May 24, 2026
60 checks passed
@jameslamb
jameslamb deleted the ci/biome-exclusions branch May 24, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants