Skip to content

Update baseline#38

Merged
jakekaplan merged 3 commits intomainfrom
update-baseline
Jan 21, 2026
Merged

Update baseline#38
jakekaplan merged 3 commits intomainfrom
update-baseline

Conversation

@jakekaplan
Copy link
Owner

@jakekaplan jakekaplan commented Jan 21, 2026

Summary

This change makes loq baseline a true “reset to current state” command. Running baseline now syncs exact-path rules to current file sizes (grow or shrink), removes rules for files that are compliant or deleted, and creates loq.toml with defaults if it doesn’t exist (including adding .loq_cache to .gitignore). The ratcheting behavior is removed along with the --allow-growth flag, and tests/docs are updated to match.

Motivation

Baseline previously behaved like a ratchet, which was surprising given the name. This update aligns baseline with the intuitive expectation of capturing the current reality, making it the natural first command for adoption and the right tool for re-baselining after intentional changes.

CLOSES #37

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Details
Benchmark suite Current: 3b7420b Previous: 6fafd55 Ratio
cpython 0.05251916704 seconds (± 0.0014) 0.05403905604000001 seconds (± 0.0039) 0.97
airflow 0.14520925494 seconds (± 0.0014) 0.14513170914 seconds (± 0.0012) 1.00
prefect 0.06191370843999999 seconds (± 0.001) 0.06253692654000001 seconds (± 0.004) 0.99
ruff 0.12906559244000002 seconds (± 0.0018) 0.12776928374000002 seconds (± 0.0024) 1.01

This comment was automatically generated by workflow using github-action-benchmark.

@codecov
Copy link

codecov bot commented Jan 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.49%. Comparing base (6fafd55) to head (3b7420b).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #38      +/-   ##
==========================================
- Coverage   98.51%   98.49%   -0.03%     
==========================================
  Files          19       19              
  Lines        2769     2791      +22     
==========================================
+ Hits         2728     2749      +21     
- Misses         41       42       +1     

☔ 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.

@jakekaplan jakekaplan marked this pull request as ready for review January 21, 2026 21:59
@jakekaplan jakekaplan merged commit 251b1b7 into main Jan 21, 2026
7 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.

Clarify baseline command: always reset to current state

1 participant