Skip to content

Add style filtering features for ASS subtitles - #35

Merged
GitBib merged 5 commits into
masterfrom
feature/style-filtering
Nov 12, 2025
Merged

Add style filtering features for ASS subtitles#35
GitBib merged 5 commits into
masterfrom
feature/style-filtering

Conversation

@GitBib

@GitBib GitBib commented Nov 11, 2025

Copy link
Copy Markdown
Owner

Description of Changes

  • Added include_styles and exclude_styles options to filter subtitles by style.
  • Introduced only_default_style flag to filter specifically for "Default" styles.
  • Enhanced CLI with new commands for listing unique styles and applied style filters for exporting.
  • Expanded test coverage for comprehensive validation of style filtering functionalities.
  • Updated documentation with examples demonstrating new style filtering options.

- Introduced `include_styles` and `exclude_styles` options in the `Subtitle` class for advanced filtering.
- Added support for `only_default_style` flag to target "Default" styles specifically.
- Expanded tests to verify style filtering logic and edge cases.
- Implemented CLI commands for listing unique styles and improved export behavior with style filters.
- Updated README with detailed examples for style filtering and CLI enhancements.
@codecov

codecov Bot commented Nov 11, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.60%. Comparing base (e441131) to head (47baf73).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #35      +/-   ##
==========================================
+ Coverage   99.38%   99.60%   +0.21%     
==========================================
  Files           5        5              
  Lines         163      254      +91     
==========================================
+ Hits          162      253      +91     
  Misses          1        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.

- Adjusted `requires-python` to `>=3.9` in `uv.lock` for newer Python versions.
- Updated resolution markers for compatibility with Python 3.14.
- Removed support for Python <3.9 across dependencies.
- Cleaned up outdated wheel links and redundant dependencies.
- Removed `main` branch trigger from `python-docs.yml`.
- Added explicit `master` branch triggers to `python-linter.yml` and `python-test.yml`.
- Introduced tests for `--only-default`, `--include-styles`, and `--exclude-styles` export options.
- Verified mutually exclusive style flag behavior with test cases.
- Added tests for `styles` command output in simple list and table formats.
- Expanded error handling tests for permission errors, unexpected runtime errors, and non-existent files in both export and styles commands.
- Updated test fixtures to include `sub_with_styles` file.
…es` commands

- Added tests to verify error handling for `FileNotFoundError` in `export` and `styles` commands.
- Simulated missing file scenarios using `monkeypatch` to mock `OriginalSubtitle` initialization failure.
- Validated CLI outputs for appropriate error messages.
@GitBib
GitBib merged commit 61362e9 into master Nov 12, 2025
23 checks passed
@GitBib
GitBib deleted the feature/style-filtering branch November 12, 2025 22:18
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