fix: update and add quality tests#3
Conversation
e3cfeac to
07da80a
Compare
07da80a to
d505b1c
Compare
cf6ff9c to
5da3951
Compare
|
@samuelallan72 I've done a readthrough and these changes make sense to me. I may circle back to test the endpoints manually after some other work today, but I'm just as happy to let @tecoholic test it since I think he's already got it set up. |
5da3951 to
591a4b1
Compare
|
@tecoholic the diff is fairly large, and I was worried about creating subtle bugs by mixing refactoring with reformatting. So I split this into 3 commits, which may make it easier to review separately:
A few minor things changed in the process (nothing functional) - you can check those with the "compare" button next to the force push message above. cc @Kelketek |
tecoholic
left a comment
There was a problem hiding this comment.
@samuelallan72 Amazing work on getting this repo to shape. If we sort out Black's config to match Pylint's rules on line-legth, I think we are good here.
| @@ -1,8 +1,5 @@ | |||
| [isort] | |||
There was a problem hiding this comment.
Related to the comment on Black & line legth - we can replace this setup.cfg with pyproject.toml.
| "License :: Other/Proprietary License", | ||
| "Natural Language :: English", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.5", |
There was a problem hiding this comment.
| "Programming Language :: Python :: 3.5", | |
| "Programming Language :: Python :: 3.11", |
|
@samuelallan72 Oh! Thank you for the 3 clean commits. It was a breeze to review the PR. |
Random passwords and enrolment tokens are generated here. The `random` module is a pseudo random number generator, and not suitable for generating secure secrets. Instead we can use the `secrets` module as a drop in replacement here.
591a4b1 to
6a60578
Compare
|
Thanks @tecoholic ! :) I addressed your comment about the line length, and responded to your other comments. Not sure if you'd like any of your other comments addressed here before merge? I also added a commit to fix a minor security issue - 6a60578 I did force push sorry, just to keep the commits all neat still. I guess next time I should submit them as separate PRs to avoid that. This should be ready for another pass. :) |
tecoholic
left a comment
There was a problem hiding this comment.
@samuelallan72 👍 LGTM
- I tested this: Ran the quality checks and formatting locally.
- I read through the code
- I checked for accessibility issues - NA
- Includes documentation
Description
Supporting information
Private-ref: https://tasks.opencraft.com/browse/BB-10035
Test instructions
tox -e qualityDeadline
None