diff --git a/.flake8 b/.flake8 index 42b7878d..f5990a83 100644 --- a/.flake8 +++ b/.flake8 @@ -1,5 +1,8 @@ [flake8] # E722 - do not use bare 'except' +# W504 - Either W503 (Line break after Operand) or W503 ( +# Line break before operand needs to be ignored for line lengths +# greater than max-line-length. Best practice shows W504 ignore = E722, W504 exclude = optimizely/lib/pymmh3.py,*virtualenv* max-line-length = 120 diff --git a/optimizely/project_config.py b/optimizely/project_config.py index d6c9d46f..8a696599 100644 --- a/optimizely/project_config.py +++ b/optimizely/project_config.py @@ -568,7 +568,7 @@ def is_feature_experiment(self, experiment_id): return experiment_id in self.experiment_feature_map def get_variation_from_id_by_experiment_id(self, experiment_id, variation_id): - """ Gets experiment id and variation id + """ Gets variation from variation id and specific experiment id Returns: 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): return {} def get_variation_from_key_by_experiment_id(self, experiment_id, variation_key): - """ Gets experiment id and variation key + """ Gets variation from variation key and specific experiment id Returns: The variation for the experiment id and variation key