-
Notifications
You must be signed in to change notification settings - Fork 20
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
Auditor accounting plugin #263
Conversation
Thanks a lot for your contribution. Unfortunately, we currently plan to support Python 3.6 as long as Centos 7 is around or EPEL decides to provide a more recent version. Is there any chance that |
The library for the glue code (PyO3) only supports 3.7 and up in current versions. Older versions apparently support 3.6 as well, so I'll have to see if I can feature gate this somehow... |
8dfee02
to
57ce074
Compare
57ce074
to
54ff096
Compare
Codecov Report
@@ Coverage Diff @@
## master #263 +/- ##
==========================================
+ Coverage 98.81% 98.85% +0.03%
==========================================
Files 54 55 +1
Lines 2192 2262 +70
==========================================
+ Hits 2166 2236 +70
Misses 26 26
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
I'm having problems with mocking and I was hoping that one of you may be able to help me. The tests complain about
I am aware of Any help is highly appreciated :) |
Unfortunately, you have to mock the entire call stack. For example in
Of course you should potentially spilt that line in several once and maybe do it in the |
Thanks, I would ever have come up with that myself. This works fine.
Black thinks that ridiculously long line is just fine. I can only split it using temporary variables:
I hope that's acceptable too. |
da817dd
to
86376a7
Compare
86376a7
to
a12b003
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Only some text comments, see inline.
c97cf61
to
445d422
Compare
Thanks for the review @RHofsaess ! I updated the docs as suggested and added documentation for the |
The CI fails at code unrelated to the PR. Maybe just a glitch, but I don't have the authority to restart the failed jobs. |
Looks like a glitch indeed. I've rerun the tests now, looks good. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for your work. I have some minor comments inline. Could you address them, please?
Thanks a lot for the review @giffels ! EDIT: Not sure what I did with requesting new reviews but somehow requesting a review from one person removes the request from another person ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks a lot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This is so far only a draft. I will request a review when ready. Comments are welcome though.
This uses the
python-auditor
package (which provides thepyauditor
module). This packages has no dependencies itself, but in order to properly deal with timezones,pytz
andtzlocal
are required.Action plan:
Edit: pyauditor is written in Rust and as such requires python>=3.7
Edit2: Works with python>=3.6 now (at least on macos and linux, not on windows)