Skip to content

Conversation

flpm
Copy link
Member

@flpm flpm commented Jul 12, 2025

The update we merged recently to update the translation stats (#521) introduced a bug that caused the update translation sessions to fail because it assumes the build directory is /html when looking for the JSON file, but when running the gettext sphinx builder that is not true. I added a check to only compute stats when using the html builder.

I also cleaned up some old code that was at the end of the update language session function that was causing the session to fail but it was no longer needed.

@flpm flpm self-assigned this Jul 12, 2025
@flpm flpm added the bug Something isn't working or is wrong in our content or build label Jul 12, 2025
@lwasser
Copy link
Member

lwasser commented Jul 12, 2025

Thank you for this, @flpm !! let's merge.

Looking at this pr I also noticed that the format of the nox file was cleaned up in this pr. Should we setup pre-commit.ci to handle nox file formatting? OR should we add a .editorconfig file to the repo and help people set that up so the noxfile formatting remains consistent? this can be a new issue and is lower priority I just noticed it here. it's an easy cleanup step :)

@lwasser lwasser merged commit 01de29e into pyOpenSci:main Jul 12, 2025
4 checks passed
@flpm
Copy link
Member Author

flpm commented Jul 12, 2025

I wondered if my config for linting was not being too opinionated :) it might very well be my fault.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working or is wrong in our content or build
Projects
Development

Successfully merging this pull request may close these issues.

3 participants