Skip to content

Commit

Permalink
Mark pixi lock files as generated (#7111)
Browse files Browse the repository at this point in the history
Pixi is a cross-platform package manager for the conda ecosystem.
It uses a lockfile called pixi.lock, which should be counted as
generated code.
  • Loading branch information
freundTech authored Nov 25, 2024
1 parent 1b01393 commit 6b31ca7
Show file tree
Hide file tree
Showing 4 changed files with 1,455 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/linguist/generated.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def generated?
poetry_lock? ||
pdm_lock? ||
uv_lock? ||
pixi_lock? ||
esy_lock? ||
npm_shrinkwrap_or_package_lock? ||
pnpm_lock? ||
Expand Down Expand Up @@ -454,6 +455,13 @@ def uv_lock?
!!name.match(/uv\.lock/)
end

# Internal: Is the blob a generated pixi lock file?
#
# Returns true or false.
def pixi_lock?
!!name.match(/pixi\.lock/)
end

# Internal: Is the blob a generated esy lock file?
#
# Returns true or false.
Expand Down
1 change: 1 addition & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8293,6 +8293,7 @@ YAML:
- ".gemrc"
- CITATION.cff
- glide.lock
- pixi.lock
- yarn.lock
ace_mode: yaml
codemirror_mode: yaml
Expand Down
Loading

2 comments on commit 6b31ca7

@Jombolist

This comment was marked as spam.

@Jombolist

This comment was marked as spam.

Please sign in to comment.