New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Type Constructor Classes in Code Level Metrics #708
Conversation
Problem stemmed from an uncaught OSError, catching all exception types when attempting to find line numbers now. |
|
Descriptor | Linter | Files | Fixed | Errors | Elapsed time |
---|---|---|---|---|---|
bandit | 1 | 0 | 2.47s | ||
black | 3 | 0 | 0 | 0.67s | |
flake8 | 3 | 0 | 0.39s | ||
isort | 3 | 0 | 0 | 0.27s | |
pylint | 3 | 0 | 3.19s | ||
prettier | 1 | 0 | 0 | 0.44s | |
v8r | 1 | 0 | 2.12s | ||
yamllint | 1 | 0 | 0.19s |
See errors details in artifact MegaLinter reports on CI Job page
Set VALIDATE_ALL_CODEBASE: true
in mega-linter.yml to validate all sources, not only the diff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed some lint errors and converted the helper function into a fixture. Otherwise looks good!
exercise_partial, | ||
(), | ||
|
||
def extract(obj): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be a fixture.
* Fix CLM exception catching * Reorganize CLM Tests * Add type constructor tests to CLM * Fix line number * Pin tox version * Fix lambda tests in CLM * Fix lint issues * Turn helper func into pytest fixture Co-authored-by: Hannah Stepanek <hstepanek@newrelic.com>
Overview
Related Github Issue
Closes #515