Skip to content

Commit

Permalink
Fix default path issue for scan and report
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaloog committed Jan 15, 2025
1 parent 5a6c917 commit b643d68
Show file tree
Hide file tree
Showing 7 changed files with 137 additions and 82 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
matrix:
python-version:
- "3.9"
- "3.12"
- "3.13"
platform:
- ubuntu-latest
- macos-latest
Expand All @@ -43,7 +43,7 @@ jobs:

- name: Run tests
# For example, using `pytest`
run: uv run pytest tests
run: uv run -p ${{matrix.python-version}} pytest tests

# Generate Coverage
- name: Generate coverage report
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.7.2
rev: v0.9.1
hooks:
# Run the linter.
- id: ruff
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.12
3.13
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Version 0.5.2
- Fix `kanban report` path error if no `-P`-flag provided, with default path
- Fix `kanban scan` path error if no `-P`-flag provided, with default path

## Version 0.5.1
- Fix deploymet issue caused by missing version file

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "kanban-python"
version = "0.5.1"
version = "0.5.2"
description = "Terminal Kanban App written in Python"
readme = "README.md"
authors = [
Expand All @@ -22,6 +22,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
]

Expand Down
3 changes: 2 additions & 1 deletion src/kanban_python/cli_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def parse_args(args):
"scan", help="scan path for TODOs in files (default: `.`)"
)
scan_parser.add_argument(
"-p", "--path", required=False, help="path to scan (default: `.`)"
"-p", "--path", required=False, help="path to scan (default: `.`)", default="."
)

# Report
Expand All @@ -58,6 +58,7 @@ def parse_args(args):
"--path",
required=False,
help=f"path to save output to (default: {REPORT_FILE_PATH})",
default=REPORT_FILE_PATH,
)

return parser.parse_args(args)
201 changes: 125 additions & 76 deletions uv.lock

Large diffs are not rendered by default.

0 comments on commit b643d68

Please sign in to comment.