Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
507 commits
Select commit Hold shift + click to select a range
db362b9
Normalize quotes.
felddy Jun 22, 2020
174d55b
Merge pull request #46 from cisagov/improvement/setup_env
felddy Jun 22, 2020
2679d94
Merge https://github.com/cisagov/skeleton-generic into lineage/skeleton
Jun 22, 2020
10a796a
Merge pull request #46 from cisagov/lineage/skeleton
felddy Jun 22, 2020
91279d3
Perform a pre-commit autoupdate for 2020-07
mcdonnnj Jul 11, 2020
907b89a
Add the black profile to the isort configuration
mcdonnnj Jul 11, 2020
3634093
Merge pull request #47 from cisagov/improvement/autoupdate_pre-commit
mcdonnnj Jul 13, 2020
4d213d5
Resolve Lineage conflicts
mcdonnnj Jul 13, 2020
2d88250
Run isort against the tests/ directory
mcdonnnj Jul 13, 2020
2920835
Merge pull request #47 from cisagov/lineage/skeleton
mcdonnnj Jul 13, 2020
d6fe79d
Update actions/cache to v2
mcdonnnj Jul 30, 2020
6ab69f4
Bump actions/setup-python to v2
mcdonnnj Jul 30, 2020
969efdd
Adjust cache key name
mcdonnnj Jul 30, 2020
e0fbcda
Merge pull request #48 from cisagov/improvement/switch_setup-python_a…
mcdonnnj Jul 30, 2020
706fd3a
Merge https://github.com/cisagov/skeleton-generic into lineage/skeleton
Jul 30, 2020
3004218
Update test and build jobs to mirror changes to lint
mcdonnnj Jul 30, 2020
f491f92
Merge pull request #48 from cisagov/lineage/skeleton
mcdonnnj Jul 31, 2020
332e5a7
Run pre-commit autoupdate
mcdonnnj Sep 3, 2020
3e9441c
Update CODEOWNERS to resolve #50
mcdonnnj Sep 3, 2020
ae4aa12
Update lint job to resolve #49
mcdonnnj Sep 3, 2020
d8f14e8
Sort .gitignore while I'm here
mcdonnnj Sep 3, 2020
1541144
Merge pull request #51 from cisagov/pre-commit_updates
mcdonnnj Sep 4, 2020
a11d281
Resolve Lineage conflicts
mcdonnnj Sep 4, 2020
26b66e4
Update build workflow and change pip option
mcdonnnj Sep 4, 2020
77edca8
Update action/upload-artifact version we use to v2
mcdonnnj Sep 4, 2020
3ae99f8
Merge pull request #49 from cisagov/lineage/skeleton
mcdonnnj Sep 6, 2020
b35fc49
Merge branch 'develop' into update_upload-artifact_action
mcdonnnj Sep 6, 2020
a5378b0
Merge pull request #50 from cisagov/update_upload-artifact_action
mcdonnnj Sep 6, 2020
5d92f68
Add support to run this package as a module
mcdonnnj Sep 28, 2020
b072dc4
Change execution status of example.py
mcdonnnj Oct 6, 2020
5c83a56
Add support for Python 3.9
mcdonnnj Oct 6, 2020
6a4164d
Bump build workflow python-version to 3.9
felddy Oct 7, 2020
c9c00f1
Replace deprecated set-env workflow syntax
felddy Oct 7, 2020
7389a1b
Enable weekly dependabot scans of github-actions and pip
felddy Oct 7, 2020
0923631
Merge pull request #52 from cisagov/improvement/workflows
felddy Oct 7, 2020
8fdada3
Merge https://github.com/cisagov/skeleton-generic into lineage/skeleton
Oct 7, 2020
d79989a
Add testing for __main__.py in pursuit of glorious 100% coverage
mcdonnnj Oct 7, 2020
1f98e8e
Merge pull request #53 from cisagov/lineage/skeleton
mcdonnnj Oct 7, 2020
9d7bd0d
Merge branch 'develop' into improvements/add_py39_support
mcdonnnj Oct 7, 2020
b4ed5ce
Merge pull request #52 from cisagov/improvements/add_py39_support
mcdonnnj Oct 7, 2020
cf2abe4
Merge branch 'develop' into improvement/add_run_as_module_support
mcdonnnj Oct 7, 2020
0db80d1
Merge pull request #51 from cisagov/improvement/add_run_as_module_sup…
mcdonnnj Oct 7, 2020
db59fc1
Enable CodeQL scanning for Python.
felddy Oct 8, 2020
e14ecde
Add link to how to set up a new repo with skeletons
hillaryj Oct 9, 2020
57d927d
Add line breaks for linting
hillaryj Oct 9, 2020
62b3de6
Merge pull request #55 from cisagov/improvement/codeql
felddy Oct 9, 2020
b5ef97d
Remove seed-isort-config pre-commit hook
mcdonnnj Oct 19, 2020
de409db
Use local filename in README link
mcdonnnj Oct 19, 2020
59eef4c
Run pre-commit autoupdate
mcdonnnj Oct 19, 2020
a9ef644
Merge pull request #53 from cisagov/add-how-to-skeleton
mcdonnnj Oct 22, 2020
1928db6
Merge branch 'develop' into pre-commit_updates
mcdonnnj Oct 22, 2020
4d88e06
Merge pull request #54 from cisagov/pre-commit_updates
mcdonnnj Oct 22, 2020
a1c3228
Resolve Lineage conflicts
mcdonnnj Oct 22, 2020
73a7dcd
Add explanation for the noqa used in one of the tests
mcdonnnj Oct 22, 2020
72715e3
Change a test name to be more descriptive
mcdonnnj Oct 22, 2020
919460c
Change repo for the prettier pre-commit hook
mcdonnnj Oct 22, 2020
e44762c
Merge pull request #55 from cisagov/migrate_prettier_hook
mcdonnnj Oct 22, 2020
e08b5bc
Merge https://github.com/cisagov/skeleton-generic into lineage/skeleton
Oct 22, 2020
0f6efe0
Merge pull request #56 from cisagov/lineage/skeleton
mcdonnnj Oct 22, 2020
a842abb
Insist that the cisagov devs are the owners of the .github directory
jsf9k Nov 3, 2020
5b199bc
Remove offending slash
jsf9k Nov 3, 2020
02c5a6f
Use the python version output by actions/setup-python
jsf9k Nov 11, 2020
a9ee3dd
Make sure the requirements in setup.py are sorted
mcdonnnj Nov 13, 2020
64c3fb6
Organize pre-commit hooks
mcdonnnj Nov 16, 2020
ede0485
Change how the version number is extracted in setup.py
mcdonnnj Nov 16, 2020
40b3b80
Add comment explaining a Flake8 check disable
mcdonnnj Nov 16, 2020
57fc8a4
Resolve LGTM alert
mcdonnnj Nov 16, 2020
763d247
Merge pull request #60 from cisagov/organize_pre-commit_requirements
mcdonnnj Nov 18, 2020
1310cfd
Merge branch 'develop' into improvement/insist-that-devs-own-gihub-dir
jsf9k Nov 18, 2020
2a2067f
Merge pull request #57 from cisagov/improvement/insist-that-devs-own-…
jsf9k Nov 18, 2020
b638143
Merge branch 'develop' into improvement/get-python-version-more-simply
jsf9k Nov 18, 2020
3b312c4
Merge pull request #59 from cisagov/improvement/get-python-version-mo…
jsf9k Nov 18, 2020
dd6e0b8
Merge github.com:cisagov/skeleton-generic into lineage/skeleton
mcdonnnj Nov 18, 2020
a2e4fd3
Merge pull request #61 from cisagov/lineage/skeleton
mcdonnnj Nov 18, 2020
a8f761c
Merge branch 'develop' into sort_requirements
mcdonnnj Nov 18, 2020
a8bdbe5
Merge pull request #59 from cisagov/sort_requirements
mcdonnnj Nov 18, 2020
0747d20
Merge branch 'develop' into resolve_manual_check_disables
mcdonnnj Nov 18, 2020
b32bb9a
Merge pull request #60 from cisagov/resolve_manual_check_disables
mcdonnnj Nov 18, 2020
f4131e5
Clean up our actions/cache step
mcdonnnj Nov 20, 2020
54858fb
Update cache key used for test and build jobs
mcdonnnj Nov 20, 2020
df674df
Merge pull request #62 from cisagov/improvement/clean_up_actions/cache
mcdonnnj Dec 3, 2020
43f5fc8
Merge https://github.com/cisagov/skeleton-generic into lineage/skeleton
Dec 3, 2020
12e1e2c
Update test and build workflow jobs
mcdonnnj Dec 3, 2020
5e27204
Merge pull request #63 from cisagov/lineage/skeleton
mcdonnnj Dec 3, 2020
751e775
Merge branch 'develop' into improvement/fix_python_version_in_cache_keys
mcdonnnj Dec 3, 2020
f1d4ae1
Merge pull request #62 from cisagov/improvement/fix_python_version_in…
mcdonnnj Dec 3, 2020
b769825
Update prettier hook details
mcdonnnj Dec 16, 2020
2d6bf50
Update black hook repo url
mcdonnnj Dec 16, 2020
5115bae
Remove trailing '.git's from repository URLs
mcdonnnj Dec 16, 2020
a7f86dd
Enable two additional hooks from default pre-commit-hooks
mcdonnnj Dec 16, 2020
06159cb
Run pre-commit autoupdate
mcdonnnj Dec 16, 2020
d836e91
Update repo URL for the isort hook
mcdonnnj Dec 17, 2020
46ec3e7
Update ansible-lint hook URL
mcdonnnj Dec 31, 2020
362b054
Run pre-commit autoupdate
mcdonnnj Dec 31, 2020
8f7435a
Add the pre-commit-packer repo and hooks
mcdonnnj Dec 31, 2020
2fb4e15
Add the --strict flag to the yamllint pre-commot hook
mcdonnnj Jan 7, 2021
01e3f84
Merge pull request #63 from cisagov/pre-commit_hook_maintenance
mcdonnnj Jan 7, 2021
be43230
Merge branch 'develop' into improvement/add_pre-commit-packer
mcdonnnj Jan 7, 2021
2383819
Merge pull request #64 from cisagov/improvement/add_pre-commit-packer
mcdonnnj Jan 7, 2021
9d909da
Merge branch 'develop' into improvement/enable_yamllint_strict
mcdonnnj Jan 7, 2021
09f4f54
Merge pull request #65 from cisagov/improvement/enable_yamllint_strict
mcdonnnj Jan 7, 2021
7deb265
Merge github.com:cisagov/skeleton-generic into lineage/skeleton
mcdonnnj Jan 7, 2021
54423cf
Merge pull request #64 from cisagov/lineage/skeleton
mcdonnnj Jan 7, 2021
ecdfc52
Add the beautysh pre-commit hook
mcdonnnj Jan 15, 2021
12033ed
Add the mypy package to dev rquirements
mcdonnnj Feb 5, 2021
6bd93ff
Update pre-commit hooks with `pre-commit autoupdate`
mcdonnnj Feb 1, 2021
b54a0fc
Update the URL used for our Python packages
mcdonnnj Feb 11, 2021
7409f9d
Update the author_email field in package metadata
mcdonnnj Feb 11, 2021
19e1fb9
Remove download_url field and add project_urls field to package metadata
mcdonnnj Feb 11, 2021
7f96877
Fix capitalization of Python in description metadata
mcdonnnj Feb 11, 2021
de06bbc
Fix agency name in author metadata
mcdonnnj Feb 11, 2021
c97a883
Revert ansible-lint version update
mcdonnnj Feb 16, 2021
3313850
Merge pull request #69 from cisagov/maintenance/update_pre-commit_hooks
mcdonnnj Feb 16, 2021
c025046
Merge branch 'develop' into improvement/add_beautysh_pre-commit_hook
mcdonnnj Feb 16, 2021
09744fa
Merge pull request #67 from cisagov/improvement/add_beautysh_pre-comm…
mcdonnnj Feb 16, 2021
6fa89b5
Merge https://github.com/cisagov/skeleton-generic into lineage/skeleton
Feb 16, 2021
4d8089e
Autoformat bump_version.sh with beautysh
mcdonnnj Feb 16, 2021
3619cfd
Merge pull request #68 from cisagov/lineage/skeleton
mcdonnnj Feb 17, 2021
5b34e86
Merge branch 'develop' into improvement/add_mypy_to_dev_requirements
mcdonnnj Feb 17, 2021
ec60d4a
Merge pull request #65 from cisagov/improvement/add_mypy_to_dev_requi…
mcdonnnj Feb 17, 2021
3b21b3d
Merge branch 'develop' into improvement/update_package_metadata
mcdonnnj Feb 17, 2021
a7d1b25
Merge pull request #67 from cisagov/improvement/update_package_metadata
mcdonnnj Feb 17, 2021
e59eb44
Update CodeQL workflow for GitHub Actions
mcdonnnj Feb 26, 2021
927c802
Merge pull request #69 from cisagov/bugfix/update_codeql_workflow
mcdonnnj Mar 16, 2021
3f80d96
Use secrets.GITHUB_TOKEN for coveralls in GHA workflow
mcdonnnj Apr 3, 2021
30a1c14
Update coveralls GHA configuration for parallelization
mcdonnnj Apr 3, 2021
5656676
Skip CodeQL workflow for Dependabot branches on push events
mcdonnnj Apr 7, 2021
ba49077
Improve gitignore file comments and organization.
felddy Apr 12, 2021
3952799
Adds a comment to direct additional requirements into setup.py
hillaryj Apr 15, 2021
2c4d7a2
Remove user from CODEOWNERS
mcdonnnj Apr 15, 2021
9db8301
Merge pull request #74 from cisagov/add-req-comment
hillaryj Apr 15, 2021
3d40ce3
Merge branch 'develop' into improvement/skip_codeql_on_push_for_depen…
mcdonnnj Apr 15, 2021
c6cd8d7
Merge pull request #73 from cisagov/improvement/skip_codeql_on_push_f…
mcdonnnj Apr 15, 2021
13fb84b
Merge branch 'develop' into improvement/update_gha_coveralls_configur…
mcdonnnj Apr 15, 2021
b85e1b8
Merge pull request #71 from cisagov/improvement/update_gha_coveralls_…
mcdonnnj Apr 15, 2021
0349499
Update pre-commit hooks
mcdonnnj Apr 15, 2021
23b324b
Update configuration instructions for pyenv
mcdonnnj Jun 1, 2021
bd12db1
Merge pull request #71 from cisagov/maintenance/update_pre-commit_hooks
mcdonnnj Jun 2, 2021
39a67fc
Merge branch 'develop' into maintenance/remove_user_from_codeowners
mcdonnnj Jun 2, 2021
a74a686
Merge https://github.com/cisagov/skeleton-generic into lineage/skeleton
Jun 2, 2021
01b06c4
Merge pull request #72 from cisagov/maintenance/remove_user_from_code…
mcdonnnj Jun 2, 2021
b486037
Merge branch 'develop' into documentation/update_pyenv_instructions
mcdonnnj Jun 2, 2021
02aefa1
Merge pull request #75 from cisagov/documentation/update_pyenv_instru…
mcdonnnj Jun 2, 2021
e140c33
Merge branch 'develop' into improvement/gitignore_me
mcdonnnj Jun 2, 2021
b0e7f01
Merge pull request #70 from cisagov/improvement/gitignore_me
mcdonnnj Jun 2, 2021
6ac1c7a
Merge https://github.com/cisagov/skeleton-generic into lineage/skeleton
Jun 2, 2021
4ef2364
Merge pull request #76 from cisagov/lineage/skeleton
mcdonnnj Jun 2, 2021
4baa1ed
Standardize the layout of the Lineage configuration file
mcdonnnj Jun 7, 2021
249bbbb
Add to the cache keys for the GitHub Actions workflow
mcdonnnj Jun 7, 2021
449eef4
Add comments explaining different hashFiles() argument
mcdonnnj Jun 7, 2021
1e8f822
Add style enforcement rules
mcdonnnj Jun 18, 2021
afc6bd6
Add rule for image headers
mcdonnnj Jun 18, 2021
ce173f4
Switch to a YAML markdownlint configuration file
mcdonnnj Jun 18, 2021
f2a4230
Add comments to markdownlint configuration
mcdonnnj Jun 18, 2021
d4781ee
Add the validate_manifest hook from pre-commit
mcdonnnj Jun 24, 2021
7ae8bea
Add assertion to verify that the root logger's logging level is set c…
jsf9k Jun 25, 2021
106af21
Install terraform and packer for the linting job
jsf9k Jul 9, 2021
c481043
Break out the curl cache creation into its own step
jsf9k Jul 10, 2021
70414cf
Remove unnecessary line in tasks
jsf9k Jul 10, 2021
b629f7f
Modify the Packer installation to model that of Terraform
jsf9k Jul 10, 2021
181d1b2
Install a specific version of terraform-docs
jsf9k Jul 11, 2021
bb6e566
Move go installation so that it takes place before the cache task
jsf9k Jul 12, 2021
337d1ef
Capitalize Go for consistency
jsf9k Jul 12, 2021
8ee2116
Prefer the newer "go install" syntax
jsf9k Jul 13, 2021
e2a729d
Install the shfmt tool for GHA
mcdonnnj Jul 13, 2021
406b688
Replace the beautysh hook with pre-commit-shfmt
mcdonnnj Jul 13, 2021
2b48e75
Apply changes from the shfmt pre-commit hook
mcdonnnj Jul 13, 2021
1df1757
Remove unnecessary boilerplate
mcdonnnj Jul 14, 2021
ad5009c
Explicitly call sys.exit for errors
mcdonnnj Jul 14, 2021
8a8785d
Update function type hints
mcdonnnj Jul 14, 2021
29ade6f
Do not use f-strings in logging messages
mcdonnnj Jul 14, 2021
015d47e
Update testing for exit code changes
mcdonnnj Jul 14, 2021
1708b5c
Update pre-commit hooks
mcdonnnj Jul 13, 2021
d7dcfee
Merge pull request #83 from cisagov/maintenance/update_pre-commit_hooks
mcdonnnj Jul 19, 2021
c17800a
Merge branch 'develop' into improvement/add_pre-commit_hook
mcdonnnj Jul 19, 2021
41a5286
Merge pull request #80 from cisagov/improvement/add_pre-commit_hook
mcdonnnj Jul 19, 2021
e607360
Merge branch 'develop' into improvement/update_mdl_configuration
mcdonnnj Jul 19, 2021
f6ad0e9
Merge branch 'develop' into improvement/install-tf-and-packer-for-lin…
jsf9k Jul 19, 2021
382c39c
Merge pull request #79 from cisagov/improvement/update_mdl_configuration
mcdonnnj Jul 19, 2021
3e3b918
Merge branch 'develop' into improvement/install-tf-and-packer-for-lin…
mcdonnnj Jul 19, 2021
0e4fc41
Merge pull request #82 from cisagov/improvement/install-tf-and-packer…
mcdonnnj Jul 19, 2021
3e83a80
Merge branch 'develop' into improvement/replace_beautysh_with_shfmt
mcdonnnj Jul 19, 2021
81cdb4d
Merge pull request #84 from cisagov/improvement/replace_beautysh_with…
mcdonnnj Jul 19, 2021
e45aec3
Merge github.com:cisagov/skeleton-generic into lineage/skeleton
mcdonnnj Jul 20, 2021
63cf76f
Changes from the pre-commit-shfmt hook
mcdonnnj Jul 20, 2021
77c19cb
Add stubs required by mypy pre-commit hook
mcdonnnj Jul 20, 2021
3452b9d
Install mypy type stubs as part of setup-env
jsf9k Jul 20, 2021
0efaf16
Merge pull request #82 from cisagov/lineage/skeleton
mcdonnnj Jul 22, 2021
6610849
Merge branch 'develop' into improvement/standardize_lineage_configura…
mcdonnnj Jul 22, 2021
720ecdc
Merge pull request #77 from cisagov/improvement/standardize_lineage_c…
mcdonnnj Jul 22, 2021
9706b8b
Merge branch 'develop' into improvement/improve-test
mcdonnnj Jul 22, 2021
422f11e
Merge pull request #80 from cisagov/improvement/improve-test
mcdonnnj Jul 22, 2021
d9f689f
Merge branch 'develop' into improvement/changes_to_match_development_…
mcdonnnj Jul 22, 2021
3c9b5d7
Merge pull request #81 from cisagov/improvement/changes_to_match_deve…
mcdonnnj Jul 22, 2021
82c3fad
Merge branch 'develop' into improvement/add_setup_to_gha_cache_key
mcdonnnj Jul 22, 2021
30b1756
Merge pull request #78 from cisagov/improvement/add_setup_to_gha_cach…
mcdonnnj Jul 22, 2021
c6de0a1
Switch to block-style sequence in build workflow
mcdonnnj Jul 29, 2021
a0f2493
Fix a typo
dav3r Aug 4, 2021
f7140d8
Use the hashicorp/setup-terraform Action
mcdonnnj Aug 10, 2021
7f324b9
Add a markdownlint rule for horizontal rules
mcdonnnj Aug 10, 2021
9848ff6
Add a markdownlint rule for code blocks
mcdonnnj Aug 10, 2021
23f9cfd
Update pre-commit hooks
mcdonnnj Aug 10, 2021
5459c2c
Merge branch 'develop' into dav3r-patch-1
mcdonnnj Aug 18, 2021
929bab5
Merge pull request #85 from cisagov/dav3r-patch-1
mcdonnnj Aug 18, 2021
f632766
Merge branch 'develop' into improvement/specify_mdl_rules
mcdonnnj Aug 18, 2021
bd030a1
Merge pull request #89 from cisagov/improvement/specify_mdl_rules
mcdonnnj Aug 18, 2021
c9c6562
Merge branch 'develop' into improvement/use_setup-terraform_in_gha_wo…
mcdonnnj Aug 18, 2021
a4196ee
Merge pull request #88 from cisagov/improvement/use_setup-terraform_i…
mcdonnnj Aug 18, 2021
82a44a5
Merge https://github.com/cisagov/skeleton-generic into lineage/skeleton
Aug 18, 2021
60b612d
Enable terraform validate pre-commit hook
dav3r Aug 26, 2021
f177ad1
Merge pull request #85 from cisagov/lineage/skeleton
mcdonnnj Aug 26, 2021
6aad03e
Merge branch 'develop' into improvement/gha_python_version_block_styl…
mcdonnnj Aug 26, 2021
e21a2a8
Merge pull request #83 from cisagov/improvement/gha_python_version_bl…
mcdonnnj Aug 26, 2021
6a7fbf0
Temporarily use cisagov/setup-env-github-action@improvement/support_t…
dav3r Aug 26, 2021
895a692
Remove lint job step to initialize Terraform directories
dav3r Aug 27, 2021
b51dbb5
Revert "Temporarily use cisagov/setup-env-github-action@improvement/s…
dav3r Aug 27, 2021
1b5cd25
Merge pull request #90 from cisagov/improvement/enable_terraform_vali…
dav3r Sep 13, 2021
64cc354
Merge https://github.com/cisagov/skeleton-generic into lineage/skeleton
Sep 13, 2021
de7e2d4
Add Python 3.10 to GHA version matrices
mcdonnnj Oct 6, 2021
c8fa763
Force strings for GHA version matrices
mcdonnnj Oct 6, 2021
b66988d
Update pre-commit hooks
mcdonnnj Sep 29, 2021
f3000e5
Merge pull request #91 from cisagov/improvement/pre-commit_update
mcdonnnj Oct 19, 2021
b78b832
Update the ansible-lint version for pre-commit
mcdonnnj Oct 1, 2021
a3c5aa7
Add an ansible-lint configuration file
mcdonnnj Oct 1, 2021
14d2edb
Merge pull request #93 from cisagov/improvement/update_ansible-lint_p…
mcdonnnj Oct 19, 2021
24df40a
Add dependabot configuration for Terraform
mcdonnnj Oct 8, 2021
ff73498
Merge pull request #94 from cisagov/improvement/add_dependabot_config…
mcdonnnj Oct 19, 2021
6cf78c0
Use an id when using cisagov/setup-env-github-action
mcdonnnj Sep 30, 2021
1e16136
Use setup-env outputs for Terraform version
mcdonnnj Sep 30, 2021
64b2471
Use setup-env outputs for Packer version
mcdonnnj Oct 1, 2021
0851598
Use setup-env outputs for shfmt version
mcdonnnj Oct 1, 2021
2699e09
Use setup-env outputs for Terraform-docs version
mcdonnnj Oct 1, 2021
8797e11
Store Go version as a step output
mcdonnnj Oct 1, 2021
ee39ac5
Merge pull request #92 from cisagov/improvement/use_action_outputs
mcdonnnj Oct 19, 2021
c1d1f5d
Merge https://github.com/cisagov/skeleton-generic into lineage/skeleton
Oct 19, 2021
6a10135
Update ansible-lint configuration
mcdonnnj Oct 28, 2021
4b912fe
Update ansible-lint configuration
mcdonnnj Oct 28, 2021
d9957b8
Merge pull request #86 from cisagov/lineage/skeleton
mcdonnnj Oct 29, 2021
2eb5dbb
Merge pull request #87 from cisagov/improvement/add_support_for_py3.10
mcdonnnj Oct 29, 2021
d0c117f
Disable fail-fast for matrix GHA jobs
mcdonnnj Oct 29, 2021
0a70bbb
Merge pull request #88 from cisagov/improvement/disable_fail-fast_for…
mcdonnnj Oct 29, 2021
3f370eb
Update pre-commit hooks
mcdonnnj Nov 17, 2021
115af25
Merge pull request #97 from cisagov/maintenance/update_pre-commit_hooks
mcdonnnj Jan 11, 2022
6e652ec
Merge branch 'develop' into improvement/update_ansible-lint_configura…
mcdonnnj Jan 11, 2022
11eca90
Merge pull request #95 from cisagov/improvement/update_ansible-lint_c…
mcdonnnj Jan 11, 2022
5be5592
Merge https://github.com/cisagov/skeleton-generic into lineage/skeleton
Jan 11, 2022
e6ddc76
Merge pull request #89 from cisagov/lineage/skeleton
mcdonnnj Jan 11, 2022
1f0cae1
Merge github.com:cisagov/skeleton-python-library into skeletonize
mcdonnnj Mar 5, 2022
a019da1
Update to satisfy pre-commit
mcdonnnj Mar 5, 2022
45c26b4
Update missed skeleton reference
mcdonnnj Mar 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
# See https://ansible-lint.readthedocs.io/en/latest/configuring.html
# for a list of the configuration elements that can exist in this
# file.
enable_list:
# Useful checks that one must opt-into. See here for more details:
# https://ansible-lint.readthedocs.io/en/latest/rules.html
- fcqn-builtins
- no-log-password
- no-same-owner
exclude_paths:
# This exclusion is implicit, unless exclude_paths is defined
- .cache
# Seems wise to ignore this too
- .github
kinds:
# This will force our systemd specific molecule configurations to be treated
# as plain yaml files by ansible-lint. This mirrors the default kind
# configuration in ansible-lint for molecule configurations:
# yaml: "**/molecule/*/{base,molecule}.{yaml,yml}"
- yaml: "**/molecule/*/molecule-{no,with}-systemd.yml"
use_default_rules: true
2 changes: 1 addition & 1 deletion .bandit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ tests:
# - B102

skips:
- B101 # skip "assert used" check since assertions are required in pytests
- B101 # skip "assert used" check since assertions are required in pytests
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ max-line-length = 80
# Select (turn on)
# * Complexity violations reported by mccabe (C) -
# http://flake8.pycqa.org/en/latest/user/error-codes.html#error-violation-codes
# * Documentation conventions compliance reported by pydocstyle (D) -
# http://www.pydocstyle.org/en/stable/error_codes.html
# * Default errors and warnings reported by pycodestyle (E and W) -
# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
# * Default errors reported by pyflakes (F) -
Expand Down
10 changes: 10 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Each line is a file pattern followed by one or more owners.

# These owners will be the default owners for everything in the
# repo. Unless a later match takes precedence, these owners will be
# requested for review when someone opens a pull request.
* @dav3r @felddy @jsf9k @mcdonnnj

# These folks own any files in the .github directory at the root of
# the repository and any of its subdirectories.
/.github/ @dav3r @felddy @jsf9k @mcdonnnj
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "terraform"
directory: "/"
schedule:
interval: "weekly"
5 changes: 5 additions & 0 deletions .github/lineage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
lineage:
skeleton:
remote-url: https://github.com/cisagov/skeleton-python-library.git
version: '1'
240 changes: 240 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
---
name: build

on:
push:
pull_request:
repository_dispatch:
types: [apb]

env:
CURL_CACHE_DIR: ~/.cache/curl
PIP_CACHE_DIR: ~/.cache/pip
PRE_COMMIT_CACHE_DIR: ~/.cache/pre-commit
RUN_TMATE: ${{ secrets.RUN_TMATE }}

jobs:
lint:
runs-on: ubuntu-latest
steps:
- id: setup-env
uses: cisagov/setup-env-github-action@develop
- uses: actions/checkout@v2
- id: setup-python
uses: actions/setup-python@v2
with:
python-version: 3.9
# We need the Go version and Go cache location for the actions/cache step,
# so the Go installation must happen before that.
- uses: actions/setup-go@v2
with:
go-version: '1.16'
- name: Store installed Go version
id: go-version
run: |
echo "::set-output name=version::"\
"$(go version | sed 's/^go version go\([0-9.]\+\) .*/\1/')"
- name: Lookup Go cache directory
id: go-cache
run: |
echo "::set-output name=dir::$(go env GOCACHE)"
- uses: actions/cache@v2
env:
BASE_CACHE_KEY: "${{ github.job }}-${{ runner.os }}-\
py${{ steps.setup-python.outputs.python-version }}-\
go${{ steps.go-version.outputs.version }}-\
packer${{ steps.setup-env.outputs.packer-version }}-\
tf${{ steps.setup-env.outputs.terraform-version }}-"
with:
# Note that the .terraform directory IS NOT included in the
# cache because if we were caching, then we would need to use
# the `-upgrade=true` option. This option blindly pulls down the
# latest modules and providers instead of checking to see if an
# update is required. That behavior defeats the benefits of caching.
# so there is no point in doing it for the .terraform directory.
path: |
${{ env.PIP_CACHE_DIR }}
${{ env.PRE_COMMIT_CACHE_DIR }}
${{ env.CURL_CACHE_DIR }}
${{ steps.go-cache.outputs.dir }}
# We do not use '**/setup.py' in the cache key so only the 'setup.py'
# file in the root of the repository is used. This is in case a Python
# package were to have a 'setup.py' as part of its internal codebase.
key: "${{ env.BASE_CACHE_KEY }}\
${{ hashFiles('**/requirements-test.txt') }}-\
${{ hashFiles('**/requirements.txt') }}-\
${{ hashFiles('**/.pre-commit-config.yaml') }}-\
${{ hashFiles('setup.py') }}"
restore-keys: |
${{ env.BASE_CACHE_KEY }}
- name: Setup curl cache
run: mkdir -p ${{ env.CURL_CACHE_DIR }}
- name: Install Packer
env:
PACKER_VERSION: ${{ steps.setup-env.outputs.packer-version }}
run: |
PACKER_ZIP="packer_${PACKER_VERSION}_linux_amd64.zip"
curl --output ${{ env.CURL_CACHE_DIR }}/"${PACKER_ZIP}" \
--time-cond ${{ env.CURL_CACHE_DIR }}/"${PACKER_ZIP}" \
--location \
"https://releases.hashicorp.com/packer/${PACKER_VERSION}/${PACKER_ZIP}"
sudo unzip -d /opt/packer \
${{ env.CURL_CACHE_DIR }}/"${PACKER_ZIP}"
sudo mv /usr/local/bin/packer /usr/local/bin/packer-default
sudo ln -s /opt/packer/packer /usr/local/bin/packer
- uses: hashicorp/setup-terraform@v1
with:
terraform_version: ${{ steps.setup-env.outputs.terraform-version }}
- name: Install shfmt
env:
PACKAGE_URL: mvdan.cc/sh/v3/cmd/shfmt
PACKAGE_VERSION: ${{ steps.setup-env.outputs.shfmt-version }}
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
- name: Install Terraform-docs
env:
PACKAGE_URL: github.com/terraform-docs/terraform-docs
PACKAGE_VERSION: ${{ steps.setup-env.outputs.terraform-docs-version }}
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade --requirement requirements-test.txt
- name: Set up pre-commit hook environments
run: pre-commit install-hooks
- name: Run pre-commit on all files
run: pre-commit run --all-files
- name: Setup tmate debug session
uses: mxschmitt/action-tmate@v3
if: env.RUN_TMATE
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
steps:
- uses: actions/checkout@v2
- id: setup-python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2
env:
BASE_CACHE_KEY: "${{ github.job }}-${{ runner.os }}-\
py${{ steps.setup-python.outputs.python-version }}-"
with:
path: ${{ env.PIP_CACHE_DIR }}
# We do not use '**/setup.py' in the cache key so only the 'setup.py'
# file in the root of the repository is used. This is in case a Python
# package were to have a 'setup.py' as part of its internal codebase.
key: "${{ env.BASE_CACHE_KEY }}\
${{ hashFiles('**/requirements-test.txt') }}-\
${{ hashFiles('**/requirements.txt') }}-\
${{ hashFiles('setup.py') }}"
restore-keys: |
${{ env.BASE_CACHE_KEY }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade --requirement requirements-test.txt
- name: Run tests
env:
RELEASE_TAG: ${{ github.event.release.tag_name }}
run: pytest
- name: Upload coverage report
run: coveralls
env:
COVERALLS_FLAG_NAME: "py${{ matrix.python-version }}"
COVERALLS_PARALLEL: true
COVERALLS_SERVICE_NAME: github
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: success()
- name: Setup tmate debug session
uses: mxschmitt/action-tmate@v3
if: env.RUN_TMATE
coveralls-finish:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
- id: setup-python
uses: actions/setup-python@v2
with:
python-version: 3.9
- uses: actions/cache@v2
env:
BASE_CACHE_KEY: "${{ github.job }}-${{ runner.os }}-\
py${{ steps.setup-python.outputs.python-version }}-"
with:
path: ${{ env.PIP_CACHE_DIR }}
# We do not use '**/setup.py' in the cache key so only the 'setup.py'
# file in the root of the repository is used. This is in case a Python
# package were to have a 'setup.py' as part of its internal codebase.
key: "${{ env.BASE_CACHE_KEY }}\
${{ hashFiles('**/requirements-test.txt') }}-\
${{ hashFiles('**/requirements.txt') }}-\
${{ hashFiles('setup.py') }}"
restore-keys: |
${{ env.BASE_CACHE_KEY }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade --requirement requirements-test.txt
- name: Finished coveralls reports
run: coveralls --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup tmate debug session
uses: mxschmitt/action-tmate@v3
if: env.RUN_TMATE
build:
runs-on: ubuntu-latest
needs: [lint, test]
strategy:
fail-fast: false
matrix:
python-version:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
steps:
- uses: actions/checkout@v2
- id: setup-python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2
env:
BASE_CACHE_KEY: "${{ github.job }}-${{ runner.os }}-\
py${{ steps.setup-python.outputs.python-version }}-"
with:
path: ${{ env.PIP_CACHE_DIR }}
# We do not use '**/setup.py' in the cache key so only the 'setup.py'
# file in the root of the repository is used. This is in case a Python
# package were to have a 'setup.py' as part of its internal codebase.
key: "${{ env.BASE_CACHE_KEY }}\
${{ hashFiles('**/requirements.txt') }}-\
${{ hashFiles('setup.py') }}"
restore-keys: |
${{ env.BASE_CACHE_KEY }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
pip install --upgrade --requirement requirements.txt
- name: Build artifacts
run: python3 setup.py sdist bdist_wheel
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: dist-${{ matrix.python-version }}
path: dist
- name: Setup tmate debug session
uses: mxschmitt/action-tmate@v3
if: env.RUN_TMATE
68 changes: 68 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
name: "CodeQL"

on:
push:
# Dependabot triggered push events have read-only access, but uploading code
# scanning requires write access.
branches-ignore: [dependabot/**]
pull_request:
# The branches below must be a subset of the branches above
branches: [develop]
schedule:
- cron: '0 14 * * 6'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript',
# 'python']
language: ['python']
# Learn more...
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a
# config file. By default, queries listed here will override any
# specified in a config file. Prefix the list here with "+" to use
# these queries and those in the config file. queries:
# ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or
# Java). If this step fails, then you should remove it and run the build
# manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following
# three lines and modify them (or add more) to build your code if your
# project uses a compiled language

# - run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
10 changes: 8 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
*.egg-info
# This file specifies intentionally untracked files that Git should ignore.
# Files already tracked by Git are not affected.
# See: https://git-scm.com/docs/gitignore

## Python ##
__pycache__
.python-version
.coverage
.mypy_cache
.pytest_cache
.python-version
*.egg-info
Loading