diff --git a/CHANGELOG.md b/CHANGELOG.md index a287cbf..c652fa3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Pyright ignores `.hatch/**` and git ignores `.hatch/` +- `check_all`/`fix_all` no longer forward the `.` path argument meant for `ruff` + into `pyright` as well, which overrode its `[tool.pyright] include` scoping and + could report spurious errors on any directory outside of it (#60) ## [2.0.0] - 2026-05-26 diff --git a/tasks.py b/tasks.py index 91def6a..68ed59e 100644 --- a/tasks.py +++ b/tasks.py @@ -92,9 +92,9 @@ def fix_format(ctx: Context, args: str = "."): @task(optional=["args"], help={"args": "additional arguments"}) def check_all(ctx: Context, args: str = ""): """check linting, formatting and static types""" - args = args or "." # needed for hatch script - check_lint(ctx, args) - check_format(ctx, args) + ruff_args = args or "." # needed for hatch script + check_lint(ctx, ruff_args) + check_format(ctx, ruff_args) check_type(ctx, args)