Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some bugs #314

Merged
merged 3 commits into from
Mar 8, 2025
Merged

Fix some bugs #314

merged 3 commits into from
Mar 8, 2025

Conversation

coordt
Copy link
Member

@coordt coordt commented Mar 8, 2025

Updated all instances of list[str] with the generic List[str] from the typing module to maintain compatibility with older Python versions (3.8 and earlier). This ensures consistent type annotations across the codebase.

Fixes #313

Refactor and improve test structure for file modifications

Consolidated and restructured tests for modify_files into classes for better organization and clarity. Fixed an issue where empty file configurations were not properly ignored and enhanced filtering logic in configuration handling.

Fixes #312

coordt added 2 commits March 8, 2025 07:42
Updated all instances of `list[str]` with the generic `List[str]` from the `typing` module to maintain compatibility with older Python versions (3.8 and earlier). This ensures consistent type annotations across the codebase.

Fixes #313
Consolidated and restructured tests for `modify_files` into classes for better organization and clarity. Fixed an issue where empty file configurations were not properly ignored and enhanced filtering logic in configuration handling.

Fixes #312
Copy link

github-actions bot commented Mar 8, 2025

Version hint: patch
Current version: 1.0.1
New version (when merged): 1.0.2

Comment ID: Display the version hint-auto-generated

Copy link

github-actions bot commented Mar 8, 2025

PR Preview Action v1.6.0

🚀 View preview at
https://callowayproject.github.io/bump-my-version/pr-preview/pr-314/

Built to branch gh-pages at 2025-03-08 14:37 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

The check for valid files to add should be `filename`, not `self.files`
Copy link

codecov bot commented Mar 8, 2025

Codecov Report

Attention: Patch coverage is 90.47619% with 2 lines in your changes missing coverage. Please review.

Project coverage is 93.89%. Comparing base (9c2bb03) to head (3578c87).
Report is 8 commits behind head on master.

Files with missing lines Patch % Lines
bumpversion/config/models.py 33.33% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #314      +/-   ##
==========================================
- Coverage   93.99%   93.89%   -0.10%     
==========================================
  Files          29       29              
  Lines        1948     1950       +2     
  Branches      204      205       +1     
==========================================
  Hits         1831     1831              
- Misses         89       90       +1     
- Partials       28       29       +1     
Flag Coverage Δ
python-3.10 93.89% <90.47%> (-0.10%) ⬇️
python-3.11 93.89% <90.47%> (-0.10%) ⬇️
python-3.12 93.89% <90.47%> (-0.10%) ⬇️
python-3.13 93.89% <90.47%> (-0.10%) ⬇️
python-3.8 93.89% <90.47%> (-0.10%) ⬇️
python-3.9 93.89% <90.47%> (-0.10%) ⬇️

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.

@coordt coordt merged commit c748828 into master Mar 8, 2025
17 of 19 checks passed
@coordt coordt deleted the 313-python-38-typeerrorfix branch March 8, 2025 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant