Skip to content

chore: modernize development and CI tooling - #673

Merged
cofin merged 4 commits into
mainfrom
chore/move-to-prek
Aug 2, 2026
Merged

chore: modernize development and CI tooling#673
cofin merged 4 commits into
mainfrom
chore/move-to-prek

Conversation

@cofin

@cofin cofin commented Aug 2, 2026

Copy link
Copy Markdown
Member

Summary

  • replace the project-locked pre-commit runner with Prek while retaining the existing hook configuration format
  • enable targeted Ruff preview checks, add the future-annotations package hook, and apply a seven-day dependency cooldown
  • harden all GitHub Actions workflows and make zizmor a blocking lint gate

cofin added 2 commits August 2, 2026 18:18
Implement no_future_annotations hook to disallow future annotations in SQLSpec code

- Added a new hook in tools/hooks/no_future_annotations.py that scans Python files for the import of `from __future__ import annotations` and reports any offending files.
- Created unit tests for the hook in tests/unit/tools/test_no_future_annotations.py to ensure it correctly identifies valid and invalid imports, handles syntax errors, and ignores non-Python files.
- Introduced an empty __init__.py file in tools/hooks to define the directory as a package.
@codecov-commenter

codecov-commenter commented Aug 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.29%. Comparing base (5b222ed) to head (ce46f11).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #673      +/-   ##
==========================================
- Coverage   77.31%   77.29%   -0.02%     
==========================================
  Files         476      476              
  Lines       68052    68052              
  Branches     9357     9357              
==========================================
- Hits        52612    52604       -8     
- Misses      12032    12039       +7     
- Partials     3408     3409       +1     
Flag Coverage Δ
integration 60.90% <ø> (+<0.01%) ⬆️
py3.10 75.61% <ø> (-0.01%) ⬇️
py3.11 75.62% <ø> (-0.01%) ⬇️
py3.12 75.63% <ø> (-0.01%) ⬇️
py3.13 75.63% <ø> (-0.01%) ⬇️
py3.14 76.51% <ø> (-0.01%) ⬇️
unit 64.85% <ø> (-0.01%) ⬇️

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

Files with missing lines Coverage Δ
sqlspec/adapters/oracledb/driver.py 72.64% <ø> (ø)
sqlspec/adapters/psqlpy/core.py 76.67% <ø> (ø)
sqlspec/adapters/pymssql/pool.py 75.00% <ø> (ø)
sqlspec/adapters/pymysql/pool.py 69.47% <ø> (-3.16%) ⬇️
sqlspec/extensions/events/_channel.py 80.12% <ø> (ø)

... and 2 files with indirect coverage changes

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

@cofin
cofin marked this pull request as ready for review August 2, 2026 19:09
@cofin
cofin merged commit b287cb7 into main Aug 2, 2026
41 of 43 checks passed
@cofin
cofin deleted the chore/move-to-prek branch August 2, 2026 21:06
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.

2 participants