Skip to content

Explicitly included files without extension are not checked #2235

@janlarres

Description

@janlarres

Summary

I have a standalone script scripts/run in my project that I want to typecheck along with the main project code.

So I have this in my pyproject.toml:

[tool.ty.src]
include = ["mypackage", "scripts/run"]

However, the run script gets ignored. I'm assuming this is because of some filtering for *.py files in directories. I think that if the include is a file instead of a directory then it would be useful to include it as-is instead of filtering to allow this use case.

Interestingly it works fine if I explicitly run ty as ty check scripts/run.

Version

ty 0.0.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    configurationRelated to settings and configuration

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions