Skip to content

Support pyrefly and ruff - #86

Open
hhoppe wants to merge 18 commits into
google:mainfrom
hhoppe:main
Open

hhoppe wants to merge 18 commits into
google:mainfrom
hhoppe:main

Conversation

@hhoppe

@hhoppe hhoppe commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Add configurations for pyrefly and ruff to pyproject.toml
Clean up code to remove many existing pyrefly pragma comments, while maintaining compatibility with mypy and pylint.
Update GitHub actions to remove deprecation warnings.
Relax the 10-bit video roundtrip test to ignore a weakness in ffmpeg 8.0.
No change in functionality.

hhoppe added 18 commits July 23, 2026 11:33
Resolve the mediapy_test.py conflict in favor of the local fix.  Upstream
commit b5902b1 relaxes the 10-bit roundtrip threshold by raising factor from
0.8 to 2.5, which absorbs the ffmpeg 8.x gain of 257/256 into a looser RMS
bound.  The local fix instead measures that gain, asserts it is within 1% of
unity, and divides it out, so the residual can still be checked at the
original factor of 0.8.  The upstream comment about raising the factor no
longer applies and is dropped; the comment above the gain computation
explains the ffmpeg behavior in its place.
@hhoppe

hhoppe commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

@Conchylicultor Hi, are you still available to have a look at this? Thanks.

This branch has not been deployed

No deployments
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