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

Feat/pypi stats #5

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Feat/pypi stats #5

wants to merge 7 commits into from

Conversation

acquayefrank
Copy link
Collaborator

Describe your changes

Implemented the base code needed to fetch repo stats from GitHub and Pypi

Issue ticket number and link

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have added thorough tests to see if it is a core feature.

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

pip install -r requirements.txt
- name: execute py script
env:
github_token: '${{ secrets.github_token }}'
Copy link
Member

Choose a reason for hiding this comment

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

need to create and add the correct token


### Project setup
It is assumed you can clone and change directories into the development repo.
Create a virtualenv or conda environment (whatever your poison)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Create a virtualenv or conda environment (whatever your poison)
Create a virtualenv or conda environment (whatever your poison).

It is assumed you can clone and change directories into the development repo.
Create a virtualenv or conda environment (whatever your poison)

Once in the repos directory, activate your env then run the following command to install th needed python libraries.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Once in the repos directory, activate your env then run the following command to install th needed python libraries.
Once in the repos directory, activate your env then run the following command to install the needed python libraries.


1: Do not push local development changes from `tmp` folder and `reports` folder. In fact do not edit them at all !!!

2: When testing with `act` do not use a token that has the permission to make push requests else your test data wil mess with "production" data
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
2: When testing with `act` do not use a token that has the permission to make push requests else your test data wil mess with "production" data
2: When testing with `act` do not use a token that has the permission to make push requests else your test data will mess with "production" data.


2: When testing with `act` do not use a token that has the permission to make push requests else your test data wil mess with "production" data

3: When testing with `act` know that the push may fail due to the fact that you can't directly push to main
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
3: When testing with `act` know that the push may fail due to the fact that you can't directly push to main
3: When testing with `act` know that the push may fail due to the fact that you can't directly push to main.


3: When testing with `act` know that the push may fail due to the fact that you can't directly push to main

4: Always,I repeat always devlop on another branch not main and never push directly to main.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
4: Always,I repeat always devlop on another branch not main and never push directly to main.
4: Always, I repeat always devlop on another branch not main and never push directly to main.

source = sanitize_filename_component(source)
action = sanitize_filename_component(action)
seperator = "__"
return f"{folder}/{project}{seperator}{package}{seperator}{source}{seperator}{action}{seperator}{date_part}.{extension}"
Copy link
Member

Choose a reason for hiding this comment

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

how about separator.join(...)? Might be tiny bit easier to read?

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.

2 participants