-
Notifications
You must be signed in to change notification settings - Fork 18
Code organisation can be improved #60
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
Comments
@dhruvkb i would like to work on this |
I am thinking of implementing it as follows . |
@tushar912 the idea of containing duplicated code in a single location is a good idea. But putting the file in a different folder might present some complications in terms of how Python resolves packages so you should check how that works. |
Yes |
yeah, relative imports could be a trouble! I tried them while fixing logging. @tushar912 if you get to know a better way, ping me back as I also need to implement this for improved logging. Thanks 👍
|
I think here we can use |
@tushar912 yes we can use |
Fixed by #143 |
Description
Currently the code in the repository is organised in directories on the basis of the GitHub Actions workflow they enable, each with its own Python environment and each independent of the other. This however does not take into account that multiple workflows may share code, utility functions and constants with each other.
For example in #58, a number of constants and functions were duplicated from
push_data_to_ccos/
tosync_community_team/
because the way the repos are organised prohibits sharing. I believe the code can be better organised to be more DRY, all the while maintaining a reasonable amount of separation between the different workflows.Reproduction
Expectation
Even when concerns are separated, constants and common functions like setting up a client to GitHub or Asana should be placed in a central location and shared.
Resolution
The text was updated successfully, but these errors were encountered: