-
Notifications
You must be signed in to change notification settings - Fork 48
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
Black formatter? #99
Comments
Well, that a long interrogation i have which says not a simple no. Problem is that is is an very old basecode initiated by a non python programmer (not me :)) starting with |
For DST handling, also, there is a bit of spaghetti that needs to be refactored to both:
That 's why i didnt had the time yet to tackle this by myself. See #1 and the related attemps, where the later is not that useful as the idea is just to refactor DST handling properly from scratch. |
Maybe i was not clear, i would eagerly see a black formatted croniter basecode, but at the condition to be insured not to have any regression :-) . |
Maybe can we process by a |
Awesome! I can make a few individual PRs that apply the black formatter. are you worried the test cases wouldn’t not catch any regressions that (would quite unlikely) be introduced by black if we formatted it all in one go? |
cron is all about user input, test coverage is already large for this purpose, but yes, bad thing can happen. |
I am thinking for the tests files I might just apply black all out, since these are code that run in CI and is not code that is used in production, we can safely say that as long as tests run, everything will be safe. |
I will also add a Github Action that will apply black and can do one of two things:
The later might be more annoying if we don't make it easy to setup black for development. |
Let's close this. The codebase is now blacked :) |
i just also added isort in the loop. |
Would you accept a PR that applies the black formatter?
Note
We're using this library in Sentry as part of our cron monitoring product. I am looking at tackling the DST bugs that exist. I would like to also spend some time cleaning up the library source code to make it easier to contribute to.
The text was updated successfully, but these errors were encountered: