Skip to content

Ignore .hatch in pyright and gitignore - #59

Merged
benoit74 merged 1 commit into
openzim:mainfrom
VanshajPoonia:ignore-hatch-in-pyright
Nov 27, 2026
Merged

benoit74 merged 1 commit into
openzim:mainfrom
VanshajPoonia:ignore-hatch-in-pyright

Conversation

@VanshajPoonia

@VanshajPoonia VanshajPoonia commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Adds .hatch/** to the pyright exclude list. As discussed in the issue it also adds .hatch to .gitignore. I noted both of these in the changelog.

Tested with ruff, pytest and pyright, and the pre-commit hooks pass. The template only checks src, tests and tasks.py so it shows no difference on its own.

On a scratch project with include = ["."] a type error in .hatch/ is reported before this change and skipped after it.

Fixes #57.

@codecov

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (c59aea1) to head (2ada65f).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #59   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines            8         8           
  Branches         1         1           
=========================================
  Hits             8         8           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@benoit74
benoit74 merged commit 5ed9c35 into openzim:main Nov 27, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pyright should ignore .hatch/** as well

2 participants