pyrefly icon indicating copy to clipboard operation
pyrefly copied to clipboard

Dotfiles should be included in project excludes always

Open connernilsen opened this issue 7 months ago • 2 comments

A file that starts with . can never be importable by Python. We should probably make this a part of project_excludes, even when overwriting from a config.

We currently exclude this in the default project_excludes, but we should move it into the logic we have around Glob::files(), and update the module documentation for Glob to mention its constraints around finding files (we only find .py and .pyi files, and will soon not include .* files as well).

Note: Glob::files() already contains some logic for excluding files (non-.py or .pyi files), so you'll probably want to add this functionality there.

connernilsen avatar May 20 '25 19:05 connernilsen

I can get this done!

Adist319 avatar May 30 '25 20:05 Adist319

Awesome @Adist319! Feel free to join our Discord server if you want and let us know if you run into any issues!

connernilsen avatar May 30 '25 22:05 connernilsen