Skip to content

Conversation

@Nytelife26
Copy link
Contributor

@Nytelife26 Nytelife26 commented Jan 12, 2026

Relevant issues

Assists with #1466. Blocked by #1475. Resolves #1358.

Brief

Add the ability to override check configuration on a per-file basis using overrides.

Changes

  • Add per_file_checks to Config
  • Apply per_file_checks as an override to Config.checks for files matching partial globs given by keys of Config.file_checks

Remaining work

  • Document this feature
  • Document the caveat that this does not support full glob syntax (see pathlib.PurePath.match)
  • Consider renaming to per_file_checks
  • Compare with expanding globs in per_file_checks and pre-computing possible configurations

@Nytelife26 Nytelife26 added the type: feat A new feature label Jan 12, 2026
@codecov
Copy link

codecov bot commented Jan 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.66%. Comparing base (d19d1c8) to head (a335e23).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1476      +/-   ##
==========================================
+ Coverage   92.56%   92.66%   +0.09%     
==========================================
  Files         100      100              
  Lines        1022     1022              
==========================================
+ Hits          946      947       +1     
+ Misses         76       75       -1     
Flag Coverage Δ
macos-latest 92.07% <100.00%> (+0.09%) ⬆️
py3.10 92.66% <100.00%> (+0.09%) ⬆️
py3.11 92.66% <100.00%> (+0.09%) ⬆️
py3.12 92.66% <100.00%> (+0.09%) ⬆️
py3.13 92.07% <100.00%> (+0.09%) ⬆️
py3.14 92.07% <100.00%> (+0.09%) ⬆️
ubuntu-latest 92.07% <100.00%> (+0.09%) ⬆️
windows-latest 92.66% <100.00%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Nytelife26 Nytelife26 changed the base branch from main to feat/config-walk January 20, 2026 13:31
@Nytelife26 Nytelife26 force-pushed the feat/per-file-config branch from c9e59a4 to 6c8d949 Compare January 20, 2026 13:32
@Nytelife26 Nytelife26 marked this pull request as ready for review January 20, 2026 13:33
@Nytelife26 Nytelife26 requested a review from suchow as a code owner January 20, 2026 13:33
Base automatically changed from feat/config-walk to main January 26, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feat A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ignore Specific Files

1 participant