Fix non ascii object members#153
Merged
bsipocz merged 8 commits intoastropy:mainfrom Aug 8, 2022
m-rossi:fix-non-ascii-object-members
Merged
Fix non ascii object members#153bsipocz merged 8 commits intoastropy:mainfrom m-rossi:fix-non-ascii-object-members
bsipocz merged 8 commits intoastropy:mainfrom
m-rossi:fix-non-ascii-object-members
Conversation
Sphinx expects utf8 and this may set to something different by default on Windows.
bsipocz
reviewed
Aug 1, 2022
Member
bsipocz
left a comment
There was a problem hiding this comment.
Overall looks good, thank you for the fix.
Could you please add an entry to the changelog (CHANGES.rst) to mention the bugfix? Thanks!
Contributor
Author
|
@bsipocz I had to remove your suggestion with the empty line as the test fail now. |
Codecov Report
@@ Coverage Diff @@
## main #153 +/- ##
==========================================
- Coverage 89.43% 89.31% -0.13%
==========================================
Files 23 24 +1
Lines 1098 1104 +6
==========================================
+ Hits 982 986 +4
- Misses 116 118 +2
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
bsipocz
approved these changes
Aug 8, 2022
Member
|
Thank you @m-rossi! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I just had an issue with non-ascii-characters in class members (in my case its a column name of a database I access with SQLAlchemy). This PR sets a default
encodingforopen()as the default seems to be os-dependent, howevers sphinx expectsutf8. This fixes my issues on Windows.I also tried to modify the non-ascii-testcase, however this seems to pass without my fix. If I execute normal
sphinx-buildduring command-line it fails: