-
Notifications
You must be signed in to change notification settings - Fork 86
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
Fix old pep8 errors #1244
Fix old pep8 errors #1244
Conversation
All PEP8 errors has been fixed, thanks ❤️ Comment last updated at |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1244 +/- ##
=======================================
Coverage 79.84% 79.84%
=======================================
Files 150 150
Lines 10322 10322
=======================================
Hits 8242 8242
Misses 2080 2080 ☔ View full report in Codecov by Sentry. |
/fix-pep8 |
/fix-pep8 |
/fix-pep8 |
/fix-pep8 |
1 similar comment
/fix-pep8 |
...ore/operations/evaluation/operation_implementations/models/ts_implementations/statsmodels.py
Outdated
Show resolved
Hide resolved
except: | ||
except BaseException: |
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.
Вот тут BaseException формально верно, потому не изменяет поведение. Но на деле должно быть Exception, чтобы допустить, например, KeyboardInterrupt. Это имеется в виду в подавляющем большинстве случаев. Если можно настроить автозамену на Exception, было бы круто
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.
Может except
без всего это синтаксический сахар для except BaseException
, поэтому он так и сделал? Если это так, тогда нужно самим явно прописать Exception.
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.
Исправил
...ore/operations/evaluation/operation_implementations/models/ts_implementations/statsmodels.py
Outdated
Show resolved
Hide resolved
/fix-pep8 |
/fix-pep8 |
/fix-pep8 |
This is a 🔨 code refactoring.
Summary
Fix old pep8 errors in python files.
Context
PR #1225