Why this matters
Enables environment-specific deployments and safer secrets management.
Derive paths/URLs from configuration or environment variables, not string literals in code.
Enables environment-specific deployments and safer secrets management.
Side-by-side examples engineers can pattern-match during review.
DATA_DIR = '/var/app/data'import os
DATA_DIR = os.environ.get('DATA_DIR', '/tmp/app-data')BASE_URL = 'https://prod.example.com'BASE_URL = os.environ['BASE_URL']From the same buckets as this rule.