mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-11 07:52:31 +02:00
Revert "feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)"
This reverts commit 1bd68ff534.
This commit is contained in:
parent
1bd68ff534
commit
0e9f613fd1
536 changed files with 111479 additions and 253 deletions
31
.cursor/rules/python-security.md
Normal file
31
.cursor/rules/python-security.md
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
description: "Python security: dotenv secret management, bandit static analysis"
|
||||
globs: ["**/*.py"]
|
||||
alwaysApply: false
|
||||
---
|
||||
|
||||
# Python Security
|
||||
|
||||
> This file extends [common/security.md](../common/security.md) with Python specific content.
|
||||
|
||||
## Secret Management
|
||||
|
||||
```python
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
|
||||
api_key = os.environ["OPENAI_API_KEY"] # Raises KeyError if missing
|
||||
```
|
||||
|
||||
## Security Scanning
|
||||
|
||||
- Use **bandit** for static security analysis:
|
||||
```bash
|
||||
bandit -r src/
|
||||
```
|
||||
|
||||
## Reference
|
||||
|
||||
See skill: `django-security` for Django-specific security guidelines (if applicable).
|
||||
Loading…
Add table
Add a link
Reference in a new issue