-
Notifications
You must be signed in to change notification settings - Fork 15
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
Code cleanup #16
base: develop
Are you sure you want to change the base?
Code cleanup #16
Conversation
Add pylint as a testing requirement in setup.py, add a local hook using it to pre-commit-config.yaml, and add a slightly tweaked .pylintrc file for configuration.
Signed-off-by: Pascal-0x90 <[email protected]>
Signed-off-by: Pascal-0x90 <[email protected]>
This pull request introduces 1 alert when merging 6dce6de into 25eb36e - view on LGTM.com new alerts:
|
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 have a few questions about this PR, which may or may not require changes. Please see my comments.
Signed-off-by: Pascal-0x90 <[email protected]>
Fixing tests. |
This pull request introduces 1 alert when merging a11c667 into 25eb36e - view on LGTM.com new alerts:
|
Signed-off-by: Pascal-0x90 <[email protected]>
This pull request introduces 1 alert when merging 38e77d5 into 25eb36e - view on LGTM.com new alerts:
|
@Pascal-0x90 - Thanks for fixing those two things I mentioned before, and for all the cleanup you have done here. Ideally I'd like to see those To make sure that this doesn't get forgotten, do you mind creating issues for those two items, mentioning the appropriate |
You're welcome @jsf9k . Below I have addresses some reasons for the ignores I put in the code (though really I am sure there is some alternative but I was not sure at the moment). I have opened some issues in regards to the parts of the code which include these ignores. Thank you again for your help and comments to improve the project's code 😄 . Issues
|
Removed comment about timeout and explained use of \#nosec
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.
Reviewed comment in file to reference use of nosec instead of timeout which has no default.
Signed-off-by: Pascal-0x90 <[email protected]>
This pull request introduces 1 alert when merging 968bbb6 into 25eb36e - view on LGTM.com new alerts:
|
🗣 Description
Refactoring code base to better follow python PEP-8 convention to improve future maintainability.
💭 Motivation and Context
Following issue #14, the code base should more strictly follow Python convention to hopefully improve maintainability.
🧪 Testing
Since no new functionality was added to the project, we used the same tests available in the repository to verify proper functionality. Changes to the tests are artifacts of changing how variables need to be passed to specific methods or classes in the project.
detectcdn
For this sub-module we tested all functions by running them on working and non-working domains.
cdnengine
For this we test if the cdnengine can properly handle sets of domains:
findcdn
We test in this module the ability for us to validate and pass information to cdnengine as well as exporting information:
🚥 Types of Changes
✅ Checklist