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. ```
Showing
- hypha/apply/api/v1/determination/serializers.py 1 addition, 4 deletionshypha/apply/api/v1/determination/serializers.py
- hypha/apply/api/v1/review/serializers.py 1 addition, 4 deletionshypha/apply/api/v1/review/serializers.py
- hypha/apply/funds/tests/test_views.py 1 addition, 1 deletionhypha/apply/funds/tests/test_views.py
- hypha/apply/projects/services/sageintacct/wrapper/api_base.py 5 additions, 2 deletions...a/apply/projects/services/sageintacct/wrapper/api_base.py
- hypha/public/people/management/commands/migrate_people.py 2 additions, 2 deletionshypha/public/people/management/commands/migrate_people.py
- hypha/public/projects/management/commands/migrate_projects.py 2 additions, 2 deletions...a/public/projects/management/commands/migrate_projects.py
Loading
Please register or sign in to comment