Skip to content
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

Linting fixes #7874

Merged
merged 5 commits into from Mar 26, 2021
Merged

Linting fixes #7874

merged 5 commits into from Mar 26, 2021

Conversation

tomchristie
Copy link
Member

Based on #7871, but dropping the .deepsource.toml config, and ignoring the changes in tests/test_fields.py

powerexploit and others added 5 commits March 26, 2021 00:21
- Added '.deepsource.toml' file for continuous analysis on bug risk

- Remove `return` from `__init__()` method

- Remove duplicate dictionary key(s)

- Use `max` built-in to get the maximum of two values

- Remove redundant `None` default

- Remove unnecessary comprehension

Signed-off-by: ankitdobhal <dobhal.ankit@protonmail.com>
@powerexploit
Copy link
Contributor

Hey @tomchristie !
Thanks for considering the code changes.
I would really appreciate it if you could drop any suggestion on what we can do better to onboard DRF on DeepSource in the future.

@tomchristie tomchristie merged commit 0323d6f into master Mar 26, 2021
@tomchristie tomchristie deleted the ankitdobhal-bug-fix branch September 3, 2021 11:56
sigvef pushed a commit to sigvef/django-rest-framework that referenced this pull request Dec 3, 2022
* Fixed code quality issues

- Added '.deepsource.toml' file for continuous analysis on bug risk

- Remove `return` from `__init__()` method

- Remove duplicate dictionary key(s)

- Use `max` built-in to get the maximum of two values

- Remove redundant `None` default

- Remove unnecessary comprehension

Signed-off-by: ankitdobhal <dobhal.ankit@protonmail.com>

* Delete .deepsource.toml

* Delete test_fields.py

* Reintroduce file from accidental deletion

Co-authored-by: ankitdobhal <dobhal.ankit@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants