Skip to content

Support checking python file without extension #1692

@bulletmark

Description

@bulletmark

Summary

ty will not check a file unless it has a python extension, e.g:

$ ty check -v myscript 
INFO Defaulting to python-platform `linux`
INFO Python version: Python 3.13, platform: linux
INFO Indexed 0 file(s) in 0.003s
WARN No python files found under the given path(s)
All checks passed!

Whereas:

$ ruff check -v myscript 
[2025-12-01][09:48:38][ruff::resolve][DEBUG] Using configuration file (via parent) at: /home/mark/Data/comps/aoc/pyproject.toml
[2025-12-01][09:48:38][ignore::gitignore][DEBUG] opened gitignore file: /home/mark/.config/git/ignore
[2025-12-01][09:48:38][ruff::commands::check][DEBUG] Identified files to lint in: 3.846741ms
[2025-12-01][09:48:38][ruff::diagnostics][DEBUG] Checking: /home/mark/Data/comps/aoc/2024/myscript
[2025-12-01][09:48:38][ruff::commands::check][DEBUG] Checked 1 files in: 785.466µs
All checks passed!

Version

ty 0.0.1-alpha.29

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliRelated to the command-line interface

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions