44a448e26d
Frontend: - Split nodeTypes/edgeTypes into separate .ts files (react-refresh) - Remove setState-in-effect in NodeModal (key prop reset) - Fix handleSave accessed before declaration (useRef pattern) - Exclude src/components/ui/** from eslint (shadcn generated) - Use defineConfig from vitest/config for test type support Backend: - ruff --fix: sort imports, datetime.UTC alias - Raise line-length to 120, ignore E501 in tests - Break long update_node/update_edge signatures - pyproject.toml: per-file-ignores for tests
14 lines
334 B
Python
14 lines
334 B
Python
"""Generate a bcrypt password hash for config.yml."""
|
|
import sys
|
|
|
|
from passlib.context import CryptContext
|
|
|
|
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
|
|
|
|
if len(sys.argv) < 2:
|
|
print("Usage: python scripts/hash_password.py <password>")
|
|
sys.exit(1)
|
|
|
|
password = sys.argv[1]
|
|
print(pwd_context.hash(password))
|