Skip to content

add tighten command#40

Merged
jakekaplan merged 2 commits intofix-relaxfrom
add-tighten-cmd
Jan 22, 2026
Merged

add tighten command#40
jakekaplan merged 2 commits intofix-relaxfrom
add-tighten-cmd

Conversation

@jakekaplan
Copy link
Owner

Summary

Add a new loq tighten command that ratchets exact‑path rules downward without ever increasing
limits, while still adding new violations and removing rules for compliant or deleted files.
Baseline remains “reset to current state,” and relax remains “add buffer.”

Behavior

Tighten updates rules only when files shrink, leaves grown files unchanged, removes rules when
files drop under the threshold, and adds rules for new violations. If loq.toml is missing, it’s
created with defaults and .loq_cache is added to .gitignore.

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: 6c5ddad Previous: 251b1b7 Ratio
cpython 0.050523683959999996 seconds (± 0.0016) 0.05347724728000001 seconds (± 0.0061) 0.94
airflow 0.13999326476 seconds (± 0.0007) 0.14346860308000003 seconds (± 0.0012) 0.98
prefect 0.05777704956 seconds (± 0.0007) 0.05971564668000001 seconds (± 0.0009) 0.97
ruff 0.12406745416 seconds (± 0.0009) 0.12667162428000003 seconds (± 0.0013) 0.98

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.62%. Comparing base (d1336db) to head (6c5ddad).
⚠️ Report is 3 commits behind head on fix-relax.

Additional details and impacted files
@@              Coverage Diff              @@
##           fix-relax      #40      +/-   ##
=============================================
+ Coverage      98.49%   98.62%   +0.12%     
=============================================
  Files             19       21       +2     
  Lines           2791     2900     +109     
=============================================
+ Hits            2749     2860     +111     
+ Misses            42       40       -2     

☔ 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 merged commit 98eb98e into fix-relax Jan 22, 2026
9 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.

1 participant