-
Notifications
You must be signed in to change notification settings - Fork 18
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
Aryan29/week1 #4
base: master
Are you sure you want to change the base?
Conversation
Aryan29/week1
eeeebb5
to
519edee
Compare
There are too many bad whitespace pylint errors. I'd recommend using a linter. |
Also, do add a .gitignore for pycache |
Week-1/aryan29/api.py
Outdated
def generate_json(self,mob): | ||
list=[] | ||
try: | ||
f=open("data.json","r") |
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.
Single character variable is highly discouraged.
Week-1/aryan29/api.py
Outdated
cprint(f"{mob1} is better than {mob2} comparing all the features",'cyan') | ||
|
||
if __name__ == "__main__": | ||
if(len(sys.argv)>1): |
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.
Are you familiar with 'argparse'?
Week-1/aryan29/keeptrack.py
Outdated
if(c%8==1): | ||
checkserver() #1day updates | ||
time.sleep(updation_time) | ||
time.sleep(updation_time) |
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'm not reviewing each line. But these are the general errors I saw after having a look:
- Some lines seem too long to follow PEP8
- Documentation is None.
- Please defer from using multiple imports in a single line.
- For constants, using UPPER_CASE should be the way to go.
- Pick a style.
- Some imports are unused.
- Correct your import order.
- Few variables are unused. e.g.:
res
f
is used in two scopes.
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.
Now using PEP8
Import Rules Done
Line Too Long Done
Using mixedCase for Variables, snake_case for functions and UPPER_CASE for constants
Unused variables and functions removed
No description provided.