You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but the loading of the pyproject.toml config (with maison) is made later in the file... so the file collect has already been made, and it's too late to filter it again...
The text was updated successfully, but these errors were encountered:
Description
If you want to use include or exclude filter defined in your pyproject... it won't be applied
Steps to reproduce
Add this section in your pyproject.toml
Current behavior
Exclude is not applied to file selection.
Desired behavior
Excluded globs should be used the same way than with --exclude cli argument
Environment
Tested on 1.16.9
Tech deep dive
It seems that the issue is located in your "endpoints/cli.py"
Here you collect elligible files specifying exclude/include from cli arguments
real_files.extend(_find_all_yaml_files(provided_file, include, exclude))
but the loading of the pyproject.toml config (with maison) is made later in the file... so the file collect has already been made, and it's too late to filter it again...
The text was updated successfully, but these errors were encountered: