-
Couldn't load subscription status.
- Fork 1
Improve code quality #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -2,6 +2,19 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| All notable changes to this project will be documented in this file. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| ## [0.2.9] - 2025-08-12 | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| ### Changed | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| - Bug Fixes | ||||||||||||||||||||||||||||||||||||||||||||||||||
| - More consistent error handling across login, status, stakick, and provmode; login now returns False when an auth token is missing. Improved discovery transport setup and resilience. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| - Refactor | ||||||||||||||||||||||||||||||||||||||||||||||||||
| - Tightened type hints and clarified method signatures for predictable return types and safer usage. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| - Tests | ||||||||||||||||||||||||||||||||||||||||||||||||||
| - Substantially expanded coverage, especially for discovery edge cases and error paths. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| - Chores | ||||||||||||||||||||||||||||||||||||||||||||||||||
| - Enabled type checking in CI and gated coverage on it; added pre-commit hook and supporting environment script; updated test dependencies. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+7
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Restructure section to follow Keep a Changelog categories (avoid nesting under “Changed”). Apply this diff: -### Changed
-
-- Bug Fixes
- - More consistent error handling across login, status, stakick, and provmode; login now returns False when an auth token is missing. Improved discovery transport setup and resilience.
-- Refactor
- - Tightened type hints and clarified method signatures for predictable return types and safer usage.
-- Tests
- - Substantially expanded coverage, especially for discovery edge cases and error paths.
-- Chores
- - Enabled type checking in CI and gated coverage on it; added pre-commit hook and supporting environment script; updated test dependencies.
+### Fixed
+- More consistent error handling across `login`, `status`, `stakick`, and provisioning mode; `login` now returns `False` when an auth token is missing.
+- Improved discovery transport setup and resilience.
+
+### Changed
+- Tightened type hints and clarified method signatures for predictable return types and safer usage.
+
+### Tests
+- Substantially expanded coverage, especially for discovery edge cases and error paths.
+
+### Chore
+- Enabled type checking in CI and gated coverage on it.
+- Added pre-commit hook and supporting environment script.
+- Updated test dependencies.📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| ## [0.2.8] - 2025-08-12 | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| ### Changed | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,3 +7,5 @@ aioresponses | |
| aioresponses==0.7.8 | ||
| aiofiles==24.1.0 | ||
| radon==6.0.1 | ||
| types-aiofiles==24.1.0.20250809 | ||
| mypy==1.17.1 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| #!/usr/bin/env sh | ||
| set -eu | ||
|
|
||
| # Used in venv activate script. | ||
| # Would be an error if undefined. | ||
| OSTYPE="${OSTYPE-}" | ||
|
|
||
| # Activate pyenv and virtualenv if present, then run the specified command | ||
|
|
||
| # pyenv, pyenv-virtualenv | ||
| if [ -s .python-version ]; then | ||
| PYENV_VERSION=$(head -n 1 .python-version) | ||
| export PYENV_VERSION | ||
| fi | ||
|
|
||
| # shellcheck source=/dev/null | ||
| if [ -n "${VIRTUAL_ENV-}" ] && [ -f "${VIRTUAL_ENV}/bin/activate" ]; then | ||
| # shellcheck source=/dev/null | ||
| . "${VIRTUAL_ENV}/bin/activate" | ||
| else | ||
| # other common virtualenvs | ||
| my_path=$(git rev-parse --show-toplevel) | ||
|
|
||
| for venv in venv .venv .; do | ||
| if [ -f "${my_path}/${venv}/bin/activate" ]; then | ||
| . "${my_path}/${venv}/bin/activate" | ||
| break | ||
| fi | ||
| done | ||
CoMPaTech marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| fi | ||
|
|
||
| exec "$@" | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Add/verify compare-link reference for [0.2.9] at the bottom of the file.
Keeps bracketed version tags clickable and consistent with common changelog practice.
Run this to check if a compare link is present; if missing, add one like “[0.2.9]: https://github.com///compare/v0.2.8...v0.2.9”:
🏁 Script executed:
Length of output: 110
I’ll fetch the repo’s origin URL and the existing
[0.2.8]link so we can craft the exact compare URL for[0.2.9].🏁 Script executed:
Length of output: 436
Add compare-link reference for [0.2.9] in CHANGELOG.md
Please append the following line at the bottom of CHANGELOG.md to enable clickable version tags:
+[0.2.9]: https://github.com/CoMPaTech/python-airos/compare/v0.2.8...v0.2.9• File: CHANGELOG.md
• Location: end of file
📝 Committable suggestion
🤖 Prompt for AI Agents