Commit Graph

8 Commits

Author SHA1 Message Date
Joungmin
63e7a2ba32 Add: Real market data with yfinance
- stock_tracker.py now uses yfinance for real prices
- get_market_indices(): KOSPI, S&P 500, NASDAQ, DOW
- get_crypto_price(): BTC, ETH, SOL with 52W range
- CLI commands: 'python stock_tracker.py market' and 'crypto'

Features:
- Live prices from Yahoo Finance
- Market indices tracking
- Cryptocurrency prices
- 52-week high/low
- Daily change percentage

Example usage:
  python stock_tracker.py market   # Show indices
  python stock_tracker.py crypto --symbol BTC  # BTC price
2026-02-19 04:11:30 +09:00
Joungmin
495113a83d Merge remote changes from Gitea 2026-02-19 03:56:49 +09:00
Joungmin
e7d88a0ef1 Update: Habit bot token configured
- Token: 8325588419:AAGghb0nosWG8g6QtYeghqUs0RHug06uG74
- Bot: @openclaw_habbit_tracker_bot
- Updated deploy_habit_bot.sh
- Verified bot connection working
2026-02-19 03:51:26 +09:00
Joungmin
37b4344137 Add: Comprehensive security scanning pipeline
- tests/test_security.py: Security test suite
- Updated Jenkinsfile: SonarQube, Snyk, Bandit, Safety, Semgrep
- test_requirements.txt: Security tool dependencies

**Security Tools Added:**

CODE QUALITY:
- Pylint, Flake8, Black, Isort, MyPy
- Vulture (dead code), Radon (complexity)

STATIC SECURITY:
- Bandit (Python SAST)
- Safety (dependency vulnerabilities)
- Semgrep (pattern matching)
- Detect Secrets (hardcoded secrets)

ADVANCED:
- SonarQube quality gate
- Snyk vulnerability scan
- pip-audit, pip-check
- pip-licenses (compliance)

**Pipeline Stages:**
1. Code Quality: Linting (Pylint, Flake8, Black, Isort)
2. Security: Static Analysis (Bandit, Safety, Semgrep, Detect Secrets)
3. Security: SonarQube Quality Gate
4. Security: Snyk Vulnerability Scan
5. Unit Tests
6. Security Tests (test_security.py)
7. Integration Tests
8. Build
9. Deploy to Staging
2026-02-19 03:36:42 +09:00
Joungmin
ceb52b2146 Add: Unit tests for habit_bot and stock_tracker
- tests/test_habit_bot.py: Habit tracking, food logging, keto guidance
- tests/test_stock_tracker.py: Portfolio management, P&L calculation
- pytest.ini: Pytest configuration
- Updated Jenkinsfile: Emphasized testing stages before build

Pipeline stages:
1. Code Quality Gates (lint + security)
2. Unit Tests (pytest with coverage)
3. Integration Tests (Oracle, Telegram, Gitea)
4. Build (only after tests pass)
5. Deploy to Staging
2026-02-19 03:32:43 +09:00
Joungmin
6d9bc5980f Add: Stock tracker, Jenkins CI/CD pipeline, linting config
- stock_tracker.py: Portfolio tracking with P&L calculations
- Jenkinsfile: Full CI/CD with linting, testing, deployment
- test_requirements.txt: Testing dependencies
- .pylintrc: Linting configuration
- requirements.txt: Production dependencies

Features:
- Stock & crypto portfolio tracking
- Investment guideline checks
- Unit tests & linting pipeline
- Integration tests for Oracle/Telegram/Gitea
- Staging & Production deployment stages
2026-02-19 03:25:52 +09:00
joungmin
9260f33f55 Initial commit: OpenClaw workspace with habit bot and flashcard app 2026-02-19 03:20:51 +09:00
5d2bf6afe7 Initial commit 2026-02-19 03:20:25 +09:00