-
Notifications
You must be signed in to change notification settings - Fork 807
Add dlint to flake8 #1124
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 dlint to flake8 #1124
Conversation
monkey/infection_monkey/dropper.py
Outdated
@@ -164,9 +165,10 @@ def start(self): | |||
"monkey_commandline": inner_monkey_cmdline, | |||
} | |||
|
|||
monkey_cmdline_split = shlex.split(monkey_cmdline) |
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.
Why do we need to split this up? Are you sure that without shell=True
this works? Can the command still find environmental variables like %TEMP%
or $HOME
?
Added comments to ignore some because: "Python uses the Mersenne Twister as the core generator. However, being completely deterministic, it is not suitable for all purposes, and is completely unsuitable for cryptographic purposes. Because the generator is deterministic this means attackers can predict future values given a sufficient amount of previous values. Normal random use is acceptable if the relevant code is not used for security or cryptographic purposes."
(Introduces a DUO116 warning)
by ignoring them
by ignoring them
- monkey/infection_monkey/dropper.py - monkey/infection_monkey/system_info/windows_info_collector.py - monkey/infection_monkey/utils/windows/users.py - monkey/infection_monkey/windows_upgrader.py
…and windows_upgrader
Codecov Report
@@ Coverage Diff @@
## develop #1124 +/- ##
===========================================
- Coverage 28.73% 28.71% -0.02%
===========================================
Files 410 410
Lines 12869 12877 +8
===========================================
Hits 3698 3698
- Misses 9171 9179 +8
Continue to review full report at Codecov.
|
What does this PR do?
Fixes #1075
PR Checklist
Testing Checklist
Explain Changes
Are the commit messages enough? If not, elaborate.