Several fixes and new features towards v0.4.0#6
Merged
Conversation
- Use single-task API endpoint (GET /task/{id}?include_subtasks=true) instead of team-wide fetch, which excluded subtasks
- Handle missing url and description fields (single-task endpoint differs from list endpoint)
- Render subtasks grouped by status with same format, colors, and fields as list view
- Update tests to reflect new API call and subtask dict format
- B904 (api_client.py) — Added from err or from None to all raise statements inside except clauses - SIM102 (api_client.py) — Combined nested if len(...) > 1: if interactive: into if len(...) > 1 and interactive: for spaces, projects, and lists - PLC0415 (cache.py) — Moved from pyclickup.models import Task, from colorist import Effect, and from pyclickup import ClickUp to module top-level - PLC0415 (main.py) — Moved maybe_warmup and ClickupyError into existing top-level imports; removed inline imports inside functions - SIM108 (main.py) — Replaced two if/else blocks with ternary operators - PLC0415 (renderer.py) — Removed redundant from collections import defaultdict (already imported at top) - SIM108 (renderer.py) — Converted due_date if/else to ternary - E501 (renderer.py) — Split long f-string across two lines - PLC0415 (tests/) — Moved import shutil and import sys to top-level; removed duplicate in-method imports of already-imported ClickupyError and pytest - B017 (test_sprint.py) — Replaced pytest.raises(Exception) with the specific pytest.raises(ListNotFoundError)
- Add `quickup login` and `quickup logout` commands for browser-based OAuth auth - Store token securely in `~/.quickup/auth.json` (0o600 permissions) - Fall back to OAuth token when no env/`.env` token is set - Update README, quickstart, installation, commands, features, troubleshooting, and API docs
- New quickup comment <task_id> command with --text flag or stdin support - Optional --notify-all flag to notify task watchers - Comment text truncated at 80 chars in confirmation output - Uses ClickUp API v2 directly (v1-incompatible endpoint) - Comprehensive tests and documentation
- Add --comments flag to show_task() fetching comments via ClickUp API v2 - Add render_task_comments() renderer showing author, date, and text per comment - Add tests covering flag behavior, empty list, API errors, and no-fetch without flag - Update README and docs with new option and examples
d349281 to
d8e2064
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.