Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 617cc4d

Browse files
Changes to address phrasing and comment to explain flake8 ignore W504
1 parent f0c1733 commit 617cc4d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.flake8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
[flake8]
22
# E722 - do not use bare 'except'
3+
# W504 - Either W503 (Line break after Operand) or W503 (
4+
# Line break before operand needs to be ignored for line lengths
5+
# greater than max-line-length. Best practice shows W504
36
ignore = E722, W504
47
exclude = optimizely/lib/pymmh3.py,*virtualenv*
58
max-line-length = 120

optimizely/project_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ def is_feature_experiment(self, experiment_id):
568568
return experiment_id in self.experiment_feature_map
569569

570570
def get_variation_from_id_by_experiment_id(self, experiment_id, variation_id):
571-
""" Gets experiment id and variation id
571+
""" Gets variation from variation id and specific experiment id
572572
573573
Returns:
574574
The variation for the experiment id and variation id
@@ -584,7 +584,7 @@ def get_variation_from_id_by_experiment_id(self, experiment_id, variation_id):
584584
return {}
585585

586586
def get_variation_from_key_by_experiment_id(self, experiment_id, variation_key):
587-
""" Gets experiment id and variation key
587+
""" Gets variation from variation key and specific experiment id
588588
589589
Returns:
590590
The variation for the experiment id and variation key

0 commit comments

Comments
 (0)