| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Rework test-coverage annotations and update .coveragerc. Move # pragma: no cover/cover markers inline on classes in dlc_processor_socket.py (OneEuroFilter and example processor classes) to more precisely control coverage. Comment out the explicit omit list in .coveragerc so those backend shims are no longer excluded there. No functional behavior changed; these edits only affect test coverage reporting and file trailing-newline cleanup.
Add comprehensive tests for ScrubSpinBox and ScrubDoubleSpinBox behavior, including fixtures, event helpers, and modifier handling. Introduces _send_mouse, _press, _move, and _release helpers to send QMouseEvent directly (reduces flakiness), plus spin/dspin fixtures configured for scrubbing. Tests cover initialization defaults, tooltip instruction handling, scrubbing threshold and accumulation, Shift/Ctrl modifier effects, rounding/coercion behavior for integer and double spinboxes, and ensuring coercion avoids zero step. Also updates imports and adds small test section headers for clarity.
Bump pre-commit-hooks to v6.0.0 and add the check-toml hook; bump ruff-pre-commit to v0.15.0. Add pyproject-fmt (v2.15.2) and validate-pyproject (v0.25) repos to format and validate pyproject.toml files. These changes add TOML checks and pyproject formatting/validation and update tooling versions.
Update coverage configuration in pyproject.toml: add "tests" to run.source and enable branch coverage (branch = true); remove tests omission from the run omit list and add an omit rule under [tool.coverage.report] to exclude tests/* from generated reports. This collects branch metrics and includes tests in coverage analysis while keeping tests out of the final report output.
There was a problem hiding this comment.
Look good!
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This pull request introduces several improvements to developer tooling, test coverage, and code quality for the project.
The most significant changes include a comprehensive overhaul of the pyproject.toml configuration, enhancements to pre-commit hooks, improvements to coverage and testing configuration, and the addition of thorough tests for custom Qt spinbox widgets. There are also minor code style and coverage annotation adjustments.
Configuration and Tooling Improvements:
Testing Enhancements:
Coverage and Code Quality:
These changes collectively modernize the project's configuration, improve code quality, and ensure more robust and maintainable testing practices.