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

Skeletonize the project #125

Merged
merged 652 commits into from
Jan 23, 2023
Merged

Skeletonize the project #125

merged 652 commits into from
Jan 23, 2023

Conversation

mcdonnnj
Copy link
Member

@mcdonnnj mcdonnnj commented Jan 23, 2023

🗣 Description

This pull request skeletonizes this project from [cisagov/skeleton-python-library].

💭 Motivation and context

  1. This project is in active use and has not been skeletonized.
  2. I need to make changes to this project to resolve a bug and I do not want to do so without at least our linting and build verification in place.

🧪 Testing

Automated tests pass.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All relevant repo and/or project documentation has been updated
    to reflect the changes in this PR.
  • Tests have been added and/or modified to cover the changes in this PR.
  • All new and existing tests pass.

✅ Pre-merge checklist

  • Finalize version.

✅ Post-merge checklist

  • Add a tag or create a release.

[cisagov/skeleton-python-library](https://github.com/cisagov/skeleton-python-library

mcdonnnj and others added 30 commits February 16, 2021 17:49
Lineage pull request for: skeleton
…rements

Add the mypy Package to the Development Package Requirements
I noticed the following warning when looking at GHA workflow runs:

1 issue was detected with this workflow: git checkout HEAD^2 is no longer
necessary. Please remove this step as Code Scanning recommends analyzing the
merge commit for best results.

After looking into it I updated the workflow per this page on GitHub Docs:

https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/troubleshooting-the-codeql-workflow#warning-git-checkout-head2-is-no-longer-necessary
Update CodeQL Workflow for GitHub Actions
coveralls-python has better integration with running in GitHub Actions now, so
we can use the automatically generated GITHUB_TOKEN secret instead of manually
setting a COVERALLS_REPO_TOKEN secret for each repository.
We already ran our tests in parallel for each major version of Python a project
supports. This change should better differentiate each test job run in the
reports submitted.
This should resolve the following error:

Error: Workflows triggered by Dependabot on the "push" event run with read-only
access. Uploading Code Scanning results requires write access. To use Code
Scanning with Dependabot, please ensure you are using the "pull_request" event
for this workflow and avoid triggering on the "push" event for Dependabot
branches. See
https://docs.github.com/en/code-security/secure-coding/configuring-code-scanning#scanning-on-push
for more information on how to configure these events.
* Add a comment describing what the files does.
* Add sections to organize patterns.
Due to her departure this removes hillaryj from the default CODEOWNERS we use
in our projects.
Adds a comment to direct additional requirements into setup.py
…or_dependabot_branches

Skip CodeQL Workflow for Dependabot Branches on push Events
…configuration

Update coveralls-python Configuration in GitHub Actions Workflow
Hooks updated with the `pre-commit autoupdate` command.

Note:
The `ansible-lint` hook is intentionally being held back on 4.3.7 because of
ongoing issues with the 5.x version and how we use Ansible (standalone Galaxy
roles).
With the release of pyenv v2.0.0 there is a breaking change around startup
logic that necessitates an update for our pyenv setup instructions. Also
add a statement about how to get configuration instructions from pyenv
itself.
…ctions

Update Instructions for Configuring pyenv
Improve gitignore file comments and organization.
The cisagov/skeleton-python-library project does not use MANIFEST.in or
setup.cfg. It also does not use Tox. Therefore all of these
configuration files should be removed for the sake of consistency.
These files should not be executable.
Update the Dockerfile to account for changes to the package structure.
Add the changes made from running the `pyupgrade` pre-commit hook
against the project.
Add the changes made from running the `isort` pre-commit hook against
the project.
Make the necessary changes to pass the `markdownlint` pre-commit hook.
Make the necessary changes to pass the `mypy` pre-commit hook.
Make the necessary changes to pass the `flake8` pre-commit hook. This
is almost exclusively to satisfy the flake8-docstring plugin.
@mcdonnnj mcdonnnj added improvement This issue or pull request will add or improve functionality, maintainability, or ease of use upstream update This issue or pull request pulls in upstream updates labels Jan 23, 2023
@mcdonnnj mcdonnnj self-assigned this Jan 23, 2023
@mcdonnnj mcdonnnj requested review from dav3r and jsf9k January 23, 2023 07:11
.coveragerc Outdated Show resolved Hide resolved
src/trustymail/trustymail.py Outdated Show resolved Hide resolved
Copy link
Member

@dav3r dav3r left a comment

Choose a reason for hiding this comment

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

Looks great aside from the two minor items I noted. Strong work! 🚀

mcdonnnj and others added 2 commits January 23, 2023 10:44
Use the correct package source for coverage information that is
generated and sent to Coveralls.

Co-authored-by: dav3r <daver@geekpad.com>
Co-authored-by: dav3r <daver@geekpad.com>
@mcdonnnj mcdonnnj merged commit 201c5f6 into develop Jan 23, 2023
@mcdonnnj mcdonnnj deleted the skeletonize branch January 23, 2023 16:40
cisagovbot pushed a commit that referenced this pull request Feb 8, 2023
cisagovbot pushed a commit that referenced this pull request Dec 19, 2023
…for-codeql-workflow

Add a diagnostics job to the CodeQL workflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement This issue or pull request will add or improve functionality, maintainability, or ease of use upstream update This issue or pull request pulls in upstream updates
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants