-
Notifications
You must be signed in to change notification settings - Fork 0
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
Linting update #116
Linting update #116
Conversation
* Update linting according to best practices described here https://mitlibraries.atlassian.net/wiki/spaces/IN/pages/3432415247/Python+Project+Linters
* Changes across the repo to satisfy or ignore linter errors
* Remove mistakenly added file
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.
All in all, heroic work here! Thanks for taking this on. The vast, vast majority to me looks outstanding. I can already tell that hopping into this codebase will be a bit more inviting now, given the increased typing and linting help.
I left a few optional suggestions, and would have marked this PR as approved with those as just suggestions, but the one I think warrants some discussion is the exception DeletedRecord
vs DeletedRecordError
(comment link).
That said, great work. Looking forward to getting this merged!
* Rename DeletedRecordError > DeletedRecordEvent * Rename lambda var attr > _ * Refactor MITAardvark.get_subjects() method
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.
Looks good! Thanks for the considerations and quick updates.
@@ -134,7 +134,7 @@ def validate_date_range( | |||
return False | |||
|
|||
|
|||
class DeletedRecordError(Exception): | |||
class DeletedRecordEvent(Exception): # noqa: N818 |
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.
👍
Purpose and background context
The following documentation related error codes were ignored as they were numerous but did not affect application functionality:
Responded to most linter suggestions and placed 1 line ignores where the changes would compromise readability.
Declined to install type stubs for
BeautifulSoup
as it introduced 168mypy
errors and this application has been running fine in prod for some time now.Includes new or updated dependencies?
YES
Changes expectations for external applications?
NO
Developer
Code Reviewer(s)