Skip to content
Snippets Groups Projects
Unverified Commit 9189cc6c authored by Saurabh Kumar's avatar Saurabh Kumar Committed by GitHub
Browse files

Fix ruff bugbear issues (#3386)

On main branch, running`make lint` shows these issues with python 3.11

```shell
❯ make lint
Checking python code style with ruff
ruff .
hypha/apply/api/v1/determination/serializers.py:16:39: C416 [*] Unnecessary `dict` comprehension (rewrite using `dict()`)
hypha/apply/api/v1/review/serializers.py:45:39: C416 [*] Unnecessary `dict` comprehension (rewrite using `dict()`)
hypha/apply/funds/tests/test_views.py:241:13: B018 Found useless expression. Either assign it to a variable or remove it.
hypha/apply/projects/services/sageintacct/wrapper/api_base.py:448:13: B028 No explicit `stacklevel` keyword argument found
hypha/public/people/management/commands/migrate_people.py:49:16: C419 [*] Unnecessary list comprehension.
hypha/public/people/management/commands/migrate_people.py:55:20: C419 [*] Unnecessary list comprehension.
hypha/public/projects/management/commands/migrate_projects.py:45:16: C419 [*] Unnecessary list comprehension.
hypha/public/projects/management/commands/migrate_projects.py:51:20: C419 [*] Unnecessary list comprehension.
Found 8 errors.
```
parent 46bee235
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment