Don't know how to run on multiple files in windows

220 Views Asked by At

This seems really simple and surely I am missing something obvious, but I can get pycodestyle to work with wildcards on my Mac but not on my pc. What am I doing wrong ?

I have tried the following and it works on my Mac:

pycodestyle ./flaskr/*.py
pycodestyle --statistics ./flaskr/*.py

However this doesn't seem to work on a pc:

pycodestyle flaskr\*.py
pycodestyle "flaskr\*.py"
pycodestyle .\flaskr\*.py
pycodestyle ".\flaskr\*.py"
pycodestyle --statistics flaskr\*.py
pycodestyle --statistics .\flaskr\*.py

I expect a report or little output, but I tend to get something similar to the following:

E902 OSError: [Errno 22] Invalid argument: 'flaskr\\*.py'
1

There are 1 best solutions below

0
On

windows cmd.exe does not expand wildcards like POSIX shells do -- so globbing techniques will not work

in this case however, you're just trying to run on a single folder, which pycodestyle supports:

pycodestyle flaskr