From bf65ede42172dd9bc6718b69e3ea9a9dd417c93d Mon Sep 17 00:00:00 2001 From: Andrew Liu <159852527+aliu39@users.noreply.github.com> Date: Tue, 7 Jan 2025 05:27:08 -0800 Subject: [PATCH] ref(flags): Beter naming for featureflags module and identifier (#3902) Co-authored-by: Anton Pirker --- sentry_sdk/integrations/{featureflags.py => feature_flags.py} | 4 ++-- .../integrations/{featureflags => feature_flags}/__init__.py | 0 .../test_feature_flags.py} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename sentry_sdk/integrations/{featureflags.py => feature_flags.py} (91%) rename tests/integrations/{featureflags => feature_flags}/__init__.py (100%) rename tests/integrations/{featureflags/test_featureflags.py => feature_flags/test_feature_flags.py} (98%) diff --git a/sentry_sdk/integrations/featureflags.py b/sentry_sdk/integrations/feature_flags.py similarity index 91% rename from sentry_sdk/integrations/featureflags.py rename to sentry_sdk/integrations/feature_flags.py index 46947eec72..2aeabffbfa 100644 --- a/sentry_sdk/integrations/featureflags.py +++ b/sentry_sdk/integrations/feature_flags.py @@ -16,7 +16,7 @@ class FeatureFlagsIntegration(Integration): @example ``` import sentry_sdk - from sentry_sdk.integrations.featureflags import FeatureFlagsIntegration, add_feature_flag + from sentry_sdk.integrations.feature_flags import FeatureFlagsIntegration, add_feature_flag sentry_sdk.init(dsn="my_dsn", integrations=[FeatureFlagsIntegration()]); @@ -25,7 +25,7 @@ class FeatureFlagsIntegration(Integration): ``` """ - identifier = "featureflags" + identifier = "feature_flags" @staticmethod def setup_once(): diff --git a/tests/integrations/featureflags/__init__.py b/tests/integrations/feature_flags/__init__.py similarity index 100% rename from tests/integrations/featureflags/__init__.py rename to tests/integrations/feature_flags/__init__.py diff --git a/tests/integrations/featureflags/test_featureflags.py b/tests/integrations/feature_flags/test_feature_flags.py similarity index 98% rename from tests/integrations/featureflags/test_featureflags.py rename to tests/integrations/feature_flags/test_feature_flags.py index 539e910607..ca6ac16949 100644 --- a/tests/integrations/featureflags/test_featureflags.py +++ b/tests/integrations/feature_flags/test_feature_flags.py @@ -4,7 +4,7 @@ import pytest import sentry_sdk -from sentry_sdk.integrations.featureflags import ( +from sentry_sdk.integrations.feature_flags import ( FeatureFlagsIntegration, add_feature_flag, )