BuildForSDG / BuildForSDG/team-272-SMES-Server

Method could be a function

Open
#52 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2
Forks
3
PR merge metrics
No merged PRs in 30d

Description

### [Codacy](https://app.codacy.com/gh/BuildForSDG/team-272-SMES-Server/commit?cid=469587798) detected an issue:
#### Message: `Method could be a function`


#### Occurred on:
+ **Commit**: b3ff0019795419a392647e530bc5f7651d3a0fd8
+ **File**: [funder/serializers.py](https://github.com/BuildForSDG/team-272-SMES-Server/blob/b3ff0019795419a392647e530bc5f7651d3a0fd8/funder/serializers.py)
+ **LineNum**: [15](https://github.com/BuildForSDG/team-272-SMES-Server/blob/b3ff0019795419a392647e530bc5f7651d3a0fd8/funder/serializers.py#L15)
+ **Code**: `def create(self, validated_data):`


#### Currently on:
+ **Commit**: 8f6fa99e6d0a77f76cbc85b03106c0442fe4d105
+ **File**: [funder/serializers.py](https://github.com/BuildForSDG/team-272-SMES-Server/blob/8f6fa99e6d0a77f76cbc85b03106c0442fe4d105/funder/serializers.py)
+ **LineNum**: [13](https://github.com/BuildForSDG/team-272-SMES-Server/blob/8f6fa99e6d0a77f76cbc85b03106c0442fe4d105/funder/serializers.py#L13)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in funder/serializers.py at the create method on the indicated line, then inspect the surrounding serializer and its callers to understand whether instance state is needed. Confirm the change with the project's available checks and ensure the Codacy “Method could be a function” finding is resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.