-
Notifications
You must be signed in to change notification settings - Fork 1
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
⚠️ CONFLICT! Lineage pull request for: skeleton #8
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This adds a hash of `setup.py` to the cache keys used in the GitHub Actions workflow for Python projects.
The other cache keys for our GHA jobs are in the format '**/<filename>' so that any file with that name is used in the repository. However, for Python packages they may have a 'setup.py' as part of their internal codebase that does not impact environment requirements. As a result we only want to use the 'setup.py' that is in the root of the repository and is used to install the package. Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Add rules to enforce ATX-closed headers, dashes for unordered list elements, and `1.` for ordered list elements.
Add <h1> and <img> tags to the allowed list for MD033 (HTML elements) to support using an image as the first thing in a markdown file (header image).
This converts the existing `.mdl_config.json` file to an equivalent `.mdl_config.yaml` file. The reference in the markdownlint pre-commit hook configuration is updated to match. Co-authored-by: Shane Frasier <jeremy.frasier@trio.dhs.gov>
Now that this is a YAML file we can add comments explaining the rule modifications we use. This will make it easier to edit or expand in the future.
This hook will validate any pre-commit hook manifest files in the repository.
…orrectly See the discussion here for more context: cisagov/pe-reports#6 (comment)
We should be doing this because the Packer and Terraform pre-commit hooks leverage the corresponding executables; therefore, it makes sense to go ahead and install the particular versions of those executables that we support. Also add support for optionally debugging via tmate. See also cisagov/skeleton-generic#74.
Co-authored-by: Nick M. <50747025+mcdonnnj@users.noreply.github.com>
There is no reason to create /usr/bin/terraform. This is a vestige of an earlier age. Co-authored-by: Nick M. <50747025+mcdonnnj@users.noreply.github.com>
The Terraform installation does not destroy the existing system Terraform installation, and neither should the Packer installation. Co-authored-by: Nick M. <50747025+mcdonnnj@users.noreply.github.com>
Note that this change is dependent on the merging of cisagov/setup-env-github-action#31. Co-authored-by: Nick M. <50747025+mcdonnnj@users.noreply.github.com>
Some variables defined in the go installation are used in the cache task, so the go installation must happen first. Co-authored-by: Nick M. <50747025+mcdonnnj@users.noreply.github.com>
Co-authored-by: Nick M. <50747025+mcdonnnj@users.noreply.github.com>
As of [Go 1.16](https://tip.golang.org/doc/go1.16#go-command) the `GO111MODULE` environment variable defaults to `on` and `go get` has been deprecated for module installation. Co-authored-by: Nick M. <50747025+mcdonnnj@users.noreply.github.com>
The `shfmt` tool does not ship on the GitHub Actions runners so we must install it manually.
We have had a difficult time with how beautysh parses some shellscripts. I went in pursuit of an alternative and I believe shfmt to be a good alternative. Co-authored-by: Shane Frasier <jeremy.frasier@trio.dhs.gov>
This package has a `__main__.py` file which removes the need to include this boilerplate.
Instead of returning a value the main loop should explicitly call `sys.exit()` if an error is encountered that would result in a non-zero exit code.
The type hints for the example_div function indicate it takes two float values, but the command line interface indicates (and checks) that it takes integer values.
C-style '%' formatting should be used to any calls to the `logging` library.
The testing needs to be updated now that `example.main()` only returns a `None` and error exits are done by directly calling `sys.exit()`.
This is performed by running `pre-commit autoupdate`, but with the `ansible-lint` hook held back manually.
Update pre-commit Hooks
Add the validate_manifest Hook to pre-commit Configuration
⚠️ CONFLICT! Lineage pull request for: skeleton
…onfiguration Standardize the Layout of the Lineage Configuration File
Verify that the logging level for the root logger is set correctly
…lopment_preferences Update to Match Best Practices
…e_key Add setup.py to the Cache Keys for the GitHub Actions Workflow
cisagovbot
added
the
upstream update
This issue or pull request pulls in upstream updates
label
Jul 22, 2021
mcdonnnj
force-pushed
the
lineage/skeleton
branch
from
August 4, 2021 16:31
228b983
to
ecadd65
Compare
mcdonnnj
requested review from
dav3r,
felddy,
jsf9k and
mcdonnnj
as code owners
August 4, 2021 17:30
jsf9k
approved these changes
Aug 4, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me!
(I had already pre-reviewed, hence the rapid turnaround.)
dav3r
approved these changes
Aug 4, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Lineage Pull Request: CONFLICT
Lineage has created this pull request to incorporate new changes found in an
upstream repository:
Upstream repository:
https://github.com/cisagov/skeleton-python-library.git
Remote branch:
HEAD
Check the changes in this pull request to ensure they won't cause issues with
your project.
The
lineage/skeleton
branch has one or more unresolved merge conflictsthat you must resolve before merging this pull request!
How to resolve the conflicts
Take ownership of this pull request by removing any other assignees.
Clone the repository locally, and reapply the merge:
Review the changes displayed by the
status
command. Fix any conflicts andpossibly incorrect auto-merges.
After resolving each of the conflicts,
add
your changes to thebranch,
commit
, andpush
your changes:Note that you may append to the default merge commit message
that git creates for you, but please do not delete the existing
content. It provides useful information about the merge that is
being performed.
Wait for all the automated tests to pass.
Check the "Everything is cool" checkbox below:
Mark this draft pull request "Ready for review".
Note: You are seeing this because one of this repository's maintainers has
configured Lineage to open pull requests.
For more information:
🛠 Lineage configurations for this project are stored in
.github/lineage.yml
📚 Read more about Lineage