---
title: No Hardcoded Configuration Values
impact: MEDIUM
impactDescription: enables environment-specific deployments
tags: config, architecture, quality, python, pyspark
---

## No Hardcoded Configuration Values

Environment-specific values (URLs, paths, flags) should be in config files, not code.

**Incorrect:**
```python
endpoint = "https://prod-api.example.com"
```

**Correct:**
```python
import yaml
config = yaml.safe_load(open("config.yaml"))
endpoint = config['api_endpoint']
```
