-
Notifications
You must be signed in to change notification settings - Fork 473
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
Add Barbados holidays #1153
Comments
Assign to me please, I'd like to help out. Possibly even with more. |
@arjunanan6 you got it. Thank you! |
@arkid15r Pretty much done here, but I can't commit.. I get a lot of errors relating to the pre-checks:
Any idea what's happening here? I believe I set up everything according to the contributor's guide. |
Issue is with: |
@arjunanan6 try to run |
@KJhellico Thanks.
|
The pre-commit runs It seems the problem is w/ A link to your exported code branch could also help to troubleshoot it. My guess is that .po files have some unresolved conflicts (or malformated in some other way). |
I can't commit as it stands, so can't even get the branch pushed. :( I just ran
|
I've tried this out on my win. machine by the way, on my mac it gives me all the errors from my first comment. I tried out the same files on win. where it reports just this issue with l10n. |
On Windows, localization process is currently problematic. If you want to try this on Win, to solve encoding problem, you need to set environment variable: set PYTHONUTF8=1 (and better to delete holidays\locale\pot\*.* files, if any exist). So it's easier to try it on Mac, if you can.
It's pre-commit hook output. These errors were fixed by |
I ran
|
And this is the output of make pre-commit from the mac:
|
Try to delete
What's your Python version? This argparse option was added in 3.9. @arkid15r , looks like we have a bit of an inconsistency here 🙄 |
Deleted *.pot files as suggested, but I am not really seeing a difference. My python version is |
Do you think upgrading to 3.9 will help? I have no problems doing that. |
Yes, try with 3.9 minimum. |
Yeah, I guess @arjunanan6 either that or upgrade to python 3.9 should help. |
So I am now using python 3.11.1 and have set up a new venv and ran make setup. Following that, I ran make pre-commit which outputs:
However, if I were to commit something after that, it is back to the same situation as before:
I'm at a loss :/ |
Maybe you have unstaged changes made by |
Oh damn, that was it. Such a silly mistake! I can now run commit, however, when I push..:
I can however run generate_po_files.py on its own without any errors. |
Run |
I ran
Truncated output from
|
|
Yes, both of those execute without any errors. |
As I understand, the issue is with
And there's no problem executing |
Well, that doesn't make too much sense to me as Does As this is just a local hook you should be able to suppress it w/ I hope this would work for you. |
It does, weirdly. I've looked at the Makefile and figured out what it does, but I can't seem to figure out why the two scripts execute individually, but not when run with Anyway, I've pushed the changes with |
That's a great progress! Thanks for getting it done, Arjun. |
Absolutely, and it was a great experience. |
@arkid15r Sorry, I might need your help again, I've made a PR in the 'right' way, but it looks like it still wants to go to master rather than beta. I've forked this repo and cloned my fork, switched to the beta branch and then made my own branch. Should do the trick normally. Or did I miss something? |
You can select target branch when creating PR on Github |
I changed the branch to beta :) |
Nice, thank you! :) |
I suppose this one can be closed now @arkid15r. |
That's right, I'll take care of it. Implemented by @arjunanan6 in #1393 |
Useful links:
The text was updated successfully, but these errors were encountered: