-
Notifications
You must be signed in to change notification settings - Fork 27
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
refactor: do not use built-in random and add proper linter check #698
Conversation
cdb4777
to
a39864a
Compare
Codecov Report
@@ Coverage Diff @@
## master #698 +/- ##
=======================================
Coverage 84.12% 84.12%
=======================================
Files 246 246
Lines 20448 20450 +2
Branches 2759 2760 +1
=======================================
+ Hits 17201 17203 +2
Misses 2673 2673
Partials 574 574
|
a39864a
to
f5c3905
Compare
@@ -78,15 +78,15 @@ isort-check: | |||
yamllint: | |||
yamllint . | |||
|
|||
.PHONY: check-version | |||
check-version: | |||
bash ./extras/check_version.sh $(VERSION) |
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.
I think we will need to adapt the .github/workflows/docker.yml
, because we used this arg there.
Since you ported it to be an env var, we should set it as an env var there instead. Besides migrating to the new check-custom
there as well.
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.
Oh, right, I'll fix it.
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.
Done. I've fixed it and tested with act
with a wrong and correct tag and both work as expected.
f5c3905
to
33abcac
Compare
33abcac
to
ba13778
Compare
Motivation
Some tests are still using the built-in
random
module, which makes it so we can't reproduce a random case.Acceptance Criteria
self.rng
(fromtests.TestCase
) insead ofrandom
self.rng
use the seed fromself.seed_config
, using a random seed when it isNone
Checklist
master
, confirm this code is production-ready and can be included in future releases as soon as it gets merged