Skip to content

Add skip-install to lint env and clean up version.py dead code#454

Merged
tnixon merged 3 commits intomasterfrom
fix/build-pep-compliance-master
Mar 3, 2026
Merged

Add skip-install to lint env and clean up version.py dead code#454
tnixon merged 3 commits intomasterfrom
fix/build-pep-compliance-master

Conversation

@R7L208
Copy link
Collaborator

@R7L208 R7L208 commented Mar 2, 2026

  • Add skip-install = true to lint hatch env (no need to install the package just to run black/flake8)
  • Remove unused run_cmd function and subprocess import from version.py
  • Simplify get_version() by removing unnecessary try/except around a constant that can never raise OSError/ValueError

Changes

Linked issues

Resolves #..

Functionality

  • added relevant user documentation
  • added a new Class method
  • modified existing Class method: ...
  • added a new function
  • modified existing function: ...
  • added a new test
  • modified existing test: ...
  • added a new example
  • modified existing example: ...
  • added a new utility
  • modified existing utility: ...

Tests

  • manually tested
  • added unit tests
  • added integration tests
  • verified on staging environment (screenshot attached)

R7L208 and others added 3 commits March 2, 2026 15:58
- Add skip-install = true to lint hatch env (no need to install the
  package just to run black/flake8)
- Remove unused run_cmd function and subprocess import from version.py
- Simplify get_version() by removing unnecessary try/except around a
  constant that can never raise OSError/ValueError

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
virtualenv 21.0.0 (released 2026-02-25) removed the
`propose_interpreters` attribute that hatch relies on, breaking all
hatch environment creation. Pin virtualenv<21 until hatch releases
a fix.

See: pypa/hatch#2193

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Mar 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.54%. Comparing base (8eb6da1) to head (b994b30).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #454   +/-   ##
=======================================
  Coverage   88.54%   88.54%           
=======================================
  Files           7        7           
  Lines        1039     1039           
  Branches      197      197           
=======================================
  Hits          920      920           
  Misses         75       75           
  Partials       44       44           

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

R7L208 added a commit that referenced this pull request Mar 3, 2026
Hatch 1.16.5 requires Python >=3.10, breaking CI for DBR 11.3/12.2
(Python 3.9). Revert to hatch 1.14.2 and pin virtualenv<21 to avoid
the removed API in virtualenv 21.0.0 (matching PR #454).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Collaborator

@tnixon tnixon left a comment

Choose a reason for hiding this comment

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

LGTM

@tnixon tnixon merged commit c2d8abd into master Mar 3, 2026
9 checks passed
@tnixon tnixon deleted the fix/build-pep-compliance-master branch March 3, 2026 18:35
tnixon pushed a commit that referenced this pull request Mar 3, 2026
* Add test for show() k parameter to verify per-series row limiting

Adds test_show_k_2 which calls show(n=20, k=2) on a TSDF with 4 rows
per series, verifying that only the 2 most recent rows per series are
returned. This exercises the k parameter path that was previously only
tested for the error case (k > n).

Closes #326

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Upgrade hatch to 1.16.5 to fix virtualenv 21.0.0 incompatibility

The lint-and-check CI job fails because virtualenv 21.0.0 removed the
propose_interpreters API that hatch 1.14.2 relies on. Hatch 1.16.5
(pypa/hatch#2196) fixes this by switching to the python-discovery package.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Revert hatch 1.16.5, pin virtualenv<21 to fix Python 3.9 CI

Hatch 1.16.5 requires Python >=3.10, breaking CI for DBR 11.3/12.2
(Python 3.9). Revert to hatch 1.14.2 and pin virtualenv<21 to avoid
the removed API in virtualenv 21.0.0 (matching PR #454).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Add missing test data entry for test_show_k_2

The test was failing in CI because the test_show_k_2 entry was missing
from tsdf_tests.json. Add the init data reference matching other
test_show_* tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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