Skip to content
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

Merged
merged 7 commits into from
Jan 31, 2024
Merged

Linting update #116

merged 7 commits into from
Jan 31, 2024

Conversation

ehanson8
Copy link
Contributor

@ehanson8 ehanson8 commented Jan 30, 2024

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 168 mypy 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

  • All new ENV is documented in README
  • All new ENV has been added to staging and production environments
  • All related Jira tickets are linked in commit message(s)
  • Stakeholder approval has been confirmed (or is not needed)

Code Reviewer(s)

  • The commit message is clear and follows our guidelines (not just this PR message)
  • There are appropriate tests covering any new functionality
  • The provided documentation is sufficient for understanding any new functionality introduced
  • Any manual tests have been performed and verified
  • New dependencies are appropriate or there were no changes

* Remove mistakenly added file
Copy link
Contributor

@ghukill ghukill left a 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!

transmogrifier/config.py Show resolved Hide resolved
transmogrifier/config.py Show resolved Hide resolved
transmogrifier/helpers.py Show resolved Hide resolved
transmogrifier/helpers.py Outdated Show resolved Hide resolved
transmogrifier/models.py Show resolved Hide resolved
transmogrifier/sources/json/aardvark.py Outdated Show resolved Hide resolved
transmogrifier/sources/transformer.py Show resolved Hide resolved
transmogrifier/sources/transformer.py Outdated Show resolved Hide resolved
transmogrifier/sources/transformer.py Show resolved Hide resolved
transmogrifier/sources/transformer.py Outdated Show resolved Hide resolved
* Rename DeletedRecordError > DeletedRecordEvent
* Rename lambda var attr > _
* Refactor MITAardvark.get_subjects() method
Copy link
Contributor

@ghukill ghukill left a 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ehanson8 ehanson8 merged commit bead8cf into main Jan 31, 2024
5 checks passed
@ehanson8 ehanson8 deleted the linting-update branch January 31, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants