Skip to content

Extract constant numbers to constants.py #3

@nicktohzyu

Description

@nicktohzyu

May refer to https://stackoverflow.com/questions/6343330/importing-a-long-list-of-constants-to-a-python-file

Extract numeric constants like RELAX_GENDERPREF_REQUIREMENT_PERCENTAGE, GENDER_SWAP_PREFERENCE_PERCENTAGE to a python file. Import from that file whenever the value is to be used.

Purpose: Firstly, this is cleaner on its own. Secondly, it's a stepping stone to reading constants from a config file (json/yaml)

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions