Skip to content

Merge pull request #10 from Huynhthuongg/codex/review-code-and-propose-fixes-at7thi Unify CI checks behind ./scripts/check.sh, add codespell and dependency validation#15

Open
Huynhthuongg wants to merge 35 commits into
codex/review-code-and-propose-fixes-6qh4yqfrom
main
Open

Merge pull request #10 from Huynhthuongg/codex/review-code-and-propose-fixes-at7thi Unify CI checks behind ./scripts/check.sh, add codespell and dependency validation#15
Huynhthuongg wants to merge 35 commits into
codex/review-code-and-propose-fixes-6qh4yqfrom
main

Conversation

@Huynhthuongg

@Huynhthuongg Huynhthuongg commented Jun 3, 2026

Copy link
Copy Markdown
Member

Summary by cubic

Unifies CI under ./scripts/check.sh, adds codespell and dev dependency checks, and ships a new weather_dashboard FastAPI app with OpenWeatherMap, a responsive UI, and SQLite-backed saved cities.

  • New Features

    • CI now runs ./scripts/check.sh instead of separate ruff/pytest steps.
    • check.sh validates ruff, codespell, pytest, and httpx; runs ruff, codespell on README/docs/app/tests/pyproject.toml/scripts/config; then pytest -q.
    • Added weather_dashboard: /, /health, /api/weather, /api/search, /api/saved-cities (GET/POST/DELETE); async OpenWeatherMap via aiohttp; security headers; docs in README_WEATHER.md; env in config/weather.env.example.
  • Dependencies

    • Added codespell[toml] with [tool.codespell] config (skip common dirs; ignore "thi").
    • Bumped httpx in dev extras to >=0.28,<1.0; removed non-existent httpx2 to fix resolution errors.

Written for commit ef7f687. Summary will update on new commits.

Review in cubic

…e-fixes-at7thi

Unify CI checks behind `./scripts/check.sh`, add codespell and dependency validation
Merge pull request #10 from Huynhthuongg/codex/review-code-and-propose-fixes-at7thi

Unify CI checks behind `./scripts/check.sh`, add codespell and dependency validation
@coderabbitai

coderabbitai Bot commented Jun 3, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 8af0f82a-eff6-41e5-8417-692a5733fe0a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch main
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch main
  • 🛠️ Aethon

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@kilo-code-bot

kilo-code-bot Bot commented Jun 3, 2026

Copy link
Copy Markdown

Kilo Code Review could not run — your account is out of credits.

Add credits or switch to a free model to enable reviews on this change.

…alytics-w-ufsgkw

Merge pull request #14 from Huynhthuongg/main

Merge pull request #10 from Huynhthuongg/codex/review-code-and-propose-fixes-at7thi

Unify CI checks behind `./scripts/check.sh`, add codespell and dependency validation
@vercel

vercel Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agents-md Error Error Jun 23, 2026 8:33pm
agents-md-2gem Error Error Jun 23, 2026 8:33pm
agents-md-bh6q Ready Ready Preview, Comment Jun 23, 2026 8:33pm
agents-md-fudg Error Error Jun 23, 2026 8:33pm
agents-md-kgvd Ready Ready Preview, Comment Jun 23, 2026 8:33pm
agents-md-lomu Error Error Jun 23, 2026 8:33pm

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4afa8a30de

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pyproject.toml Outdated

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 4 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="pyproject.toml">

<violation number="1" location="pyproject.toml:25">
P2: On Python 3.10 (which is in the CI matrix), `codespell` cannot read `[tool.codespell]` from `pyproject.toml` without the `tomli` package. This means the `skip` and `ignore-words-list` settings defined below will be silently ignored on that Python version, causing inconsistent or failing spell checks. Use `codespell[toml]` to pull in `tomli` automatically on Python < 3.11.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread pyproject.toml Outdated

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file (changes from recent commits).

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread README.md Outdated
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

@Huynhthuongg Huynhthuongg left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huynhthuongg and others added 2 commits June 3, 2026 18:33
Update README.md

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Merge pull request #25 from Huynhthuongg/main
- Remove httpx2>=2.3,<3.0 from pyproject.toml (line 24)
- Remove httpx2 from check.sh module validation (line 11)
- Keep httpx>=0.28,<1.0 which is the correct package

Fixes dependency resolution errors in CI/CD and local setup.
fix: remove non-existent httpx2 dependency
- Add Weather Dashboard with real-time weather fetching
- Integrate OpenWeatherMap API for global weather data
- Implement responsive HTML5 UI with modern design
- Add city search functionality with autocomplete
- Add save/favorite cities with SQLite database
- Include comprehensive weather details (temperature, humidity, wind, pressure, sunrise/sunset)
- Add security headers and error handling
- Responsive design for mobile, tablet, and desktop
- FastAPI with async/await pattern
- Complete API documentation

Files added:
- weather_dashboard/config.py - Configuration management
- weather_dashboard/models.py - Data models (WeatherData, SavedCity, etc.)
- weather_dashboard/weather_service.py - OpenWeatherMap API integration
- weather_dashboard/database.py - SQLite database operations
- weather_dashboard/app.py - FastAPI application and routes
- weather_dashboard/templates.py - Beautiful HTML dashboard
- weather_dashboard/__init__.py - Package initialization
- config/weather.env.example - Environment configuration example
- README_WEATHER.md - Complete documentation
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> (#39) (#47) (#72) (#73) (#74)
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> (#39) (#47) (#72) (#73) (#74) (#76)
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> (#39) (#47) (#72) (#73) (#74) (#76) (#77)
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> (#39) (#47) (#72) (#73) (#74) (#76) (#77) (#83)
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> (#39) (#47) (#72) (#73) (#74) (#76) (#77) (#83) (#84)
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working codex documentation Improvements or additions to documentation duplicate This issue or pull request already exists enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed invalid This doesn't seem right question Further information is requested

Projects

None yet

2 participants