From 5d5cb2fdaba1a67d1a2d2a866b1968fb109edcf4 Mon Sep 17 00:00:00 2001 From: Elia el Lazkani Date: Sun, 24 Nov 2024 21:27:35 +0100 Subject: [PATCH] chore(): Moves the constants to their own entitiy file --- src/entities/cards.py | 5 +---- src/entities/constants.py | 8 ++++++++ 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 src/entities/constants.py diff --git a/src/entities/cards.py b/src/entities/cards.py index 7e95e39..61b3647 100644 --- a/src/entities/cards.py +++ b/src/entities/cards.py @@ -1,7 +1,4 @@ -CARDS = { - "fibonacci": [0.5, 1, 2, 3, 5, 8, 13, 21, 34, 55, "?"], - "tshirt": ["XS", "S", "M", "L", "XL", "XXL", "XXXL", "?"], -} +from src.entities.constants import CARDS class Cards: diff --git a/src/entities/constants.py b/src/entities/constants.py new file mode 100644 index 0000000..67abbca --- /dev/null +++ b/src/entities/constants.py @@ -0,0 +1,8 @@ +""" +File containing all constant entities +""" + +CARDS = { + "fibonacci": [0.5, 1, 2, 3, 5, 8, 13, 21, 34, 55, "?"], + "tshirt": ["XS", "S", "M", "L", "XL", "XXL", "XXXL", "?"], +}