Pretty self explanatory, as a Linux user it would be nice to say python3 Scripts/lint.py App/JS/*.js. This can be accomplished with the Python Pathlib module, as referenced in this StackOverflow question. Additionally, implementation of the new Pathlib module means that os.walk can be deprecated, improving the overall readability of the code.
Pretty self explanatory, as a Linux user it would be nice to say
python3 Scripts/lint.py App/JS/*.js
. This can be accomplished with the Python Pathlib module, as referenced in this StackOverflow question. Additionally, implementation of the new Pathlib module means thatos.walk
can be deprecated, improving the overall readability of the code.