ApplicationInsights-Python
ApplicationInsights-Python copied to clipboard
Find recursive pylint solution
Pylint only runs on individual files or module folders with init.py. We need to run pylin recursively. Resources: https://stackoverflow.com/questions/36873096/run-pylint-for-all-python-files-in-a-directory-and-all-subdirectories https://askubuntu.com/questions/266179/how-to-exclude-ignore-hidden-files-and-directories-in-a-wildcard-embedded-find https://stackoverflow.com/questions/47642747/tox-warningtest-command-found-but-not-installed-in-testenv
I've tried the following: find {toxinidir}/ -type f -name ".py" | xargs pylint find {toxinidir}/ -not -path '/.' -type f -name ".py" | xargs pylint pylint $(git ls-files '*.py')
None have worked yet. I think the find options could work. However, find seems to not be working correctly in the tox env.
No longer needed after migrating to azure sdk
Pylint managed by azure sdk: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-opentelemetry/pyproject.toml#L6