-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't determine python-format flag implicitly #80
base: master
Are you sure you want to change the base?
Conversation
Commit message: please add reason. See http://coala.readthedocs.org/en/latest/Getting_Involved/Writing_Good_Commits/#how-to-write-good-commit-messages for more info. Please rebase, should fix the tests. |
@JonathanRRogers still around? Please let us know if you need any assistance! |
Codecov Report
@@ Coverage Diff @@
## master #80 +/- ##
==========================================
+ Coverage 90.31% 90.37% +0.06%
==========================================
Files 24 24
Lines 4129 4134 +5
==========================================
+ Hits 3729 3736 +7
+ Misses 400 398 -2
Continue to review full report at Codecov.
|
@JonathanRRogers would you mind removing the merge commits and doing a rebase ( |
@JonathanRRogers from llooking shortly at the commits now, e.g. the first one needs an explanation in the commit message so it is clear what this is, also note that no commit should break the build because each of them needs to be revertible later individually. So you probably want to squash your "Fix tests" bug with the one where it belongs to. |
oh and please ping me when you add new commits, I don't check all PRs regularly, a comment will summon me :) |
Though I have been using git for years, I have never needed to rebase and I haven't used GitHub much. I looked around GitHub for documentation relating to rebase to no avail. I ran "git rebase --interactive" and it had no effect. Perhaps you can point me to an example of what you want exactly. I have added a test to cover the extract function interface change I made and all the checks have passed. |
@JonathanRRogers GitHub isn't really rebase friendly. If you need it depends on what workflow you are using. Using rebase has the advantage of making the commit history more maintenance friendly, you don't have all those merge commits cluttering it. This eases review and thus helps reducing bugs because a merge commit is close to non-reviewable. You'll want to pull the current master first from this repository, then checkout your branch and do a If you need anything else, please contact me simply on https://gitter.im/python-babel/babel , I'm always happy to help :) |
Test coverage looks good now, thanks. |
and here's a tutorial: https://www.atlassian.com/git/tutorials/rewriting-history/git-rebase-i |
2d7414c
to
a40b955
Compare
If anyone's actually interested in this enhancement, let me know. |
@JonathanRRogers Hey, sorry for the delay with the patch 😿 This looks mostly like a nice patch, though adding an additional return value to extractors should probably be dealt with due care. In particular, all Babel-internal code paths should be checked to accept both 5-tuples and 6-tuples from extractors. (Looks like you've done that already, though?) Even so, I'm afraid that external code that bypasses For instance, formalizing the output interface for extractors from just regular tuples to namedtuples might be a worthy step to do at that point. All that said, if you could rebase this patch on top of the current |
I'm sorry I've neglected this pull request for so long. I have rebased it again. |
d3caaf8
to
eb8942d
Compare
I would appriciate this functionality very much. For my own extractor (angularjs) I need the possibility to change the flag ("angularjs-format"). |
During extraction, Message instances can be created with the "python-format" flag, indicating that the message string contains Python percent-formatting placeholders. To avoid setting the flag erroneously because the string source is not Python code or otherwise is not expected to contain such placeholders, the extractor interface must be extended to allow extractor functions to indicate which flags are valid. Fixes python-babel#35
aeb954a
to
70a4b3a
Compare
This extends the extractor interface as discussed in #35