fix: Resolve some bug risks and code quality issues #497
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes:
twilio/base/serialize.py
(PYL-W0102)cls
as the first arg. intwilio/jwt/validation/__init__.py
andtwilio/base/page.py
(PYL-C0202)tests/unit/http/test_validation_client.py
andtests/unit/http/test_http_client.py
(PYL-W0611)len()
used as condition intwilio/request_validator.py
(PYL-C1801)This PR also adds
.deepsource.toml
configuration file to run continuous static analysis on the repo with DeepSource. Upon enabling DeepSource, quality and security analysis will be run on every PR to detect 500+ types of problems in the changes — including bug risks, anti-patterns, security vulnerabilities, etc.DeepSource is a free to use for open-source projects, and is used by teams at NASA, Uber, Slack, Qubole, Dgraph among many others.
To enable DeepSource analysis after merging this PR, please follow these steps:
You can also look at the docs for more details. Do let me know if I can be of any help!
Cheers,
Sanket
Founder, DeepSource
Contributing to Twilio