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

Change dir #143

Merged
merged 23 commits into from
Sep 5, 2024
Merged

Change dir #143

merged 23 commits into from
Sep 5, 2024

Conversation

khalford
Copy link
Member

Changed the directory structure as Pylint and Python are not importing the same as each other and one will bug out.

This fixes the codes import errors an enables it to run. However, pylint will error saying it cannot import, which is less of a priority than the code running.
Inheriting from "Exception" is still broad and we can use specific exceptions for more detail
Slack and GitHub classes have been broken down into further classes to help atomise the module. Also, moved to use data classes over dictionaries as they make the code much cleaner read and easier to work with.
Changed this to fix issues with Pylint and Python importing.
With this directory structure: Pylint, Pytest and Python all show no errors.
Copy link
Contributor

@meoflynn meoflynn left a comment

Choose a reason for hiding this comment

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

LGTM, I just had a question about unit tests

cloud_chatops/lib/get_github_prs.py Show resolved Hide resolved
Copy link
Contributor

@anish-mudaraddi anish-mudaraddi left a comment

Choose a reason for hiding this comment

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

Looks like you've got a lot of changes shared with this PR - #142

I would recommend closing this one - getting #142 merged and re-opening this one as it will make reviewing easier for us

@khalford khalford closed this Jun 24, 2024
@khalford khalford reopened this Sep 2, 2024
meoflynn
meoflynn previously approved these changes Sep 2, 2024
Copy link
Contributor

@anish-mudaraddi anish-mudaraddi 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 - just a few nitpicks

cloud_chatops/lib/pr_reminder.py Outdated Show resolved Hide resolved
cloud_chatops/lib/pr_reminder.py Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.08%. Comparing base (d1186a6) to head (28417e5).

❗ There is a different number of reports uploaded between BASE (d1186a6) and HEAD (28417e5). Click for more details.

HEAD has 3 uploads less than BASE
Flag BASE (d1186a6) HEAD (28417e5)
4 2
rabbit_consumer 1 0
Additional details and impacted files
@@             Coverage Diff             @@
##           master     #143       +/-   ##
===========================================
- Coverage   97.20%   81.08%   -16.13%     
===========================================
  Files          66        3       -63     
  Lines        3046       74     -2972     
===========================================
- Hits         2961       60     -2901     
+ Misses         85       14       -71     
Flag Coverage Δ
rabbit_consumer ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@khalford khalford merged commit 4d22a4e into master Sep 5, 2024
6 checks passed
@khalford khalford deleted the change_dir branch September 20, 2024 10:42
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.

4 participants