Skip to content

Conversation

@wjt
Copy link
Member

@wjt wjt commented Oct 3, 2025

My upstream pull request was merged:

The maintainer chose to edit my contribution to not add the image tag
to piskel files:

the image tag was an idea that didn't really pan out so I'm just
going to remove it here

Of course that's their prerogative as maintainer!

Unfortunately this means that my plan from commit
e92fd6d, to exclude all image files
with exclude_types: [image], is not going to work. Instead we have to
add the piskel type explicitly to the list, and also any further
text-based image file formats that we find in future.

Add piskel to the exclude list. Replace the image type with svg:
svg is the only format with that type, and since that tag will not be
applied to any new formats, it's clearer to be explicit.

Remove the regex branches that match piskel files by name.

If you have pre-commit set up locally, this change will cause the hook
to fail:

=====> Type tag 'piskel' is not recognized.  Try upgrading identify and pre-commit?

If you installed pre-commit with uv tool install you can run:

uv tool upgrade pre-commit

My upstream pull request was merged:

- pre-commit/identify#541

The maintainer chose to edit my contribution to not add the `image` tag
to piskel files:

> the `image` tag was an idea that didn't really pan out so I'm just
> going to remove it here

Of course that's their prerogative as maintainer!

Unfortunately this means that my plan from commit
e92fd6d, to exclude all image files
with `exclude_types: [image]`, is not going to work. Instead we have to
add the `piskel` type explicitly to the list, and also any further
text-based image file formats that we find in future.

Add `piskel` to the exclude list. Replace the `image` type with `svg`:
`svg` is the only format with that type, and since that tag will not be
applied to any new formats, it's clearer to be explicit.

Remove the regex branches that match piskel files by name.

If you have `pre-commit` set up locally, this change will cause the hook
to fail:

    =====> Type tag 'piskel' is not recognized.  Try upgrading identify and pre-commit?

If you installed `pre-commit` with `uv tool install` you can run:

    uv tool upgrade pre-commit
@github-actions
Copy link

github-actions bot commented Oct 3, 2025

Play this branch at https://endlessm.github.io/threadbare/branches/endlessm/wjt/pre-commit-recognise-piskel-files-via-exclude-types.

(This launches the game from the start, not directly at the change(s) in this pull request.)

@wjt wjt marked this pull request as ready for review October 3, 2025 08:41
@wjt wjt requested a review from a team as a code owner October 3, 2025 08:41
@wjt wjt requested a review from a team as a code owner October 3, 2025 08:49
Copy link
Collaborator

@manuq manuq left a comment

Choose a reason for hiding this comment

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

Thanks for the instructions for updating the pre-commit hook.

@manuq manuq merged commit 7453373 into main Oct 3, 2025
5 checks passed
@manuq manuq deleted the wjt/pre-commit-recognise-piskel-files-via-exclude-types branch October 3, 2025 12:59
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.

3 participants