issues Search Results · repo:pre-commit/identify language:Python
Filter by
79 results
(69 ms)79 results
inpre-commit/identify (press backspace or delete to remove)description
if I run identify.tags_from_path on a file /tmp/foo_bar_file with the following contents, it get s classified as text
file.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# some lame license ...
HartmutLeister
- 2
- Opened 3 days ago
- #534
$ identify-cli src/link-layer
[ file , non-executable , text ]
$ file src/link-layer
src/link-layer: C++ source text, ASCII text
$ identify-cli src/link-layer.cpp
[ c++ , file , non-executable , ...
rehsack
- 9
- Opened 10 days ago
- #532
First, thanks for this great library!
While reviewing the code in identify.py, I noticed a possible TOCTOU (Time-of-Check to Time-of-Use) issue in some
functions.
The code often checks file properties ...
denini08
- 1
- Opened on Jun 6
- #525
kooka1262004
- Opened on May 23
- #521
I have a bash script scripts/test which is incorrectly detected as python by tags_from_path. It uses uv to run inside a
virtualenv and automatically install dependencies. It is not a python script.
#!/usr/bin/env ...
mattmess1221
- Opened on Mar 6
- #512
Right now TableGen files *.td are identified as { non-executable , file , text }.
Supporting this would enable the identification and use of pre-commit hooks like
https://github.com/pre-commit/mirrors-clang-format ...
UtkarshKunwar
- 1
- Opened on Feb 6
- #505
identify fails to properly identify files which use #!/bin/env instead of #!/usr/bin/env:
For example:
- #!/usr/bin/env python:
identify-cli usr-bin-env-python-test
[ executable , file , python ...
psa
- 1
- Opened on Dec 17, 2024
- #495
Observed
Currently (as of HEAD), a Dockerfile.dockerignore file is tagged with { dockerfile , text }.
Expectation
It should be tagged with { dockerignore , text }.
Reference
https://docs.docker.com/build/concepts/context/#syntax ...
thiagowfx
- 1
- Opened on Nov 26, 2024
- #489
Please add support for recognizing OpenSCAD files.
- .scad
- .csg
.csg files are a subset of OpenSCAD, so an additional tag would be appreciated for them.
EmperorArthur
- 8
- Opened on Oct 13, 2024
- #482
I have a bash script that ends with .sh.j2
This is the result of identify-cli against a bash script and a bash script template:
[ executable , file , shell , text ]
[ executable , file , jinja , ...
choman
- 1
- Opened on Jun 20, 2024
- #465

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Press the /
key to activate the search input again and adjust your query.