Closed cubeprodata closed 7 months ago
Describe the bug --exclude option doesn't work for nested files - we noticed it only on Windows(works on Mac and Linux)
In the example below, file directly under excluded folder is ignored whilst file in a subfolder is not.
To Reproduce Create folder with subfolder and file in it.
Run sqlfmt . --exclude "./folder/**/*"
sqlfmt . --exclude "./folder/**/*"
Expected behavior All files in excluded folder should be ignored
Actual behavior Files in excluded folder are formatted
Additional context What is the output of sqlfmt --version?
sqlfmt --version
see on screenshot
What is the output of pip list (or pipx list if you installed using pipx)?
pip list
pipx list
Agreed. Duplicates #440
Describe the bug --exclude option doesn't work for nested files - we noticed it only on Windows(works on Mac and Linux)
In the example below, file directly under excluded folder is ignored whilst file in a subfolder is not.
To Reproduce Create folder with subfolder and file in it.
Run
sqlfmt . --exclude "./folder/**/*"
Expected behavior All files in excluded folder should be ignored
Actual behavior Files in excluded folder are formatted
Additional context What is the output of
sqlfmt --version
?see on screenshot
What is the output of
pip list
(orpipx list
if you installed using pipx)?see on screenshot