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

Integrate skeleton-python-library and Migrate to Python 3 #2

Merged
merged 381 commits into from
Dec 2, 2020
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
381 commits
Select commit Hold shift + click to select a range
ff27a9a
Correct capitalization for badge.
felddy Oct 17, 2019
58c707d
Make action badge a link.
felddy Oct 17, 2019
f8ca5c6
Lowercasing workflow name so the shield matches all others.
felddy Oct 17, 2019
da7e1cc
Remove travis. :(
felddy Oct 17, 2019
e666a6f
Add comment about why we are pinning virtualenv
felddy Oct 17, 2019
e4127dd
Rename env variable to make sense in a post-travis world.
felddy Oct 17, 2019
038a75a
Formatting
felddy Oct 17, 2019
fae7694
Merge pull request #20 from cisagov/improvement/actions
felddy Oct 18, 2019
78a230d
Add updates from running pre-commit autoupdate
dav3r Oct 18, 2019
b189690
Merge pull request #18 from cisagov/improvement/updates_from_precommi…
dav3r Oct 18, 2019
05a136b
Replace Travis-CI with GitHub actions.
felddy Oct 18, 2019
02fb008
Fix action shield link
felddy Oct 18, 2019
b31ad85
Disable ansible-lint until they fix their setup.py
felddy Oct 18, 2019
b11e39a
Remove extra line.
felddy Oct 18, 2019
12b91c4
Merge pull request #20 from cisagov/improvement/actions
felddy Oct 18, 2019
df0d922
Split workflow into multiple jobs. Add artifact output.
felddy Oct 25, 2019
7ab251e
Merge pull request #22 from cisagov/improvement/split_actions
felddy Oct 25, 2019
3c78dd9
Re-enabled ansible-lint and ran pre-commit autoupgrade.
mcdonnnj Nov 2, 2019
7dfd8bf
Merge pull request #21 from cisagov/pre-commit_autoupdate_2019-11-02
mcdonnnj Nov 5, 2019
af4e9fe
Pull upstream changes from skeleton-generic.
mcdonnnj Nov 5, 2019
36f1b3b
Remove virtualenv version pinning as the issue has been resolved in a…
mcdonnnj Nov 5, 2019
414b6fc
Merge pull request #23 from cisagov/pull_upstream_changes_2019-11-05
mcdonnnj Nov 5, 2019
5d5567d
Add GitHub action caching of pre-commit hooks and pip packages.
felddy Nov 5, 2019
c26ea01
Merge branch 'develop' into improvement/action_cache
felddy Nov 5, 2019
99c6115
Remove search for previous pre-commit caches.
felddy Nov 5, 2019
10bbfdf
Merge pull request #22 from cisagov/improvement/action_cache
felddy Nov 5, 2019
cf99067
Add caches for GitHub Actions.
felddy Nov 12, 2019
b10dd19
Pass in the github release tag for testing.
felddy Nov 12, 2019
ff684c0
Merge pull request #25 from cisagov/improvement/action_cache
felddy Nov 12, 2019
5f6a413
Merge branch 'develop' into bug/release_tag
felddy Nov 12, 2019
43c35af
Applying autoupdate of pre-commit hooks.
felddy Nov 14, 2019
9c3acdc
Merge branch 'bug/release_tag' of github.com:cisagov/skeleton-python-…
felddy Nov 14, 2019
d228e00
Merge pull request #26 from cisagov/bug/release_tag
felddy Nov 14, 2019
7c0b30b
Force pre-commit hooks to use python3.
felddy Nov 15, 2019
30a16a3
Autoupdate pre-commit hooks.
felddy Nov 15, 2019
5e26930
Merge pull request #24 from cisagov/improvement/pre_commit_default_py…
felddy Nov 15, 2019
499c48d
Merge branch 'develop' of github.com:cisagov/skeleton-generic into im…
felddy Nov 15, 2019
9973b62
Merge pull request #27 from cisagov/improvement/upstream
felddy Nov 15, 2019
e39dc88
Add codeowners file with team OIS maintainers.
felddy Nov 18, 2019
3f93760
Merge pull request #25 from cisagov/improvement/codeowners
felddy Nov 18, 2019
b89eecb
Update CODEOWNERS
felddy Nov 18, 2019
727f98d
Merge branch 'develop' of github.com:cisagov/skeleton-generic into im…
felddy Nov 18, 2019
ba0827c
Merge pull request #28 from cisagov/improvement/codeowners
felddy Nov 18, 2019
18b5d12
Add seed-isort-config and isort to pre-commit hooks.
mcdonnnj Dec 19, 2019
09afdf3
Merge pull request #28 from cisagov/improvements/pre-commit_add_isort
mcdonnnj Dec 23, 2019
88723d2
Merge branch 'develop' of github.com:cisagov/skeleton-generic into im…
mcdonnnj Dec 23, 2019
db3e5c9
Ran pre-commit to populate .isort.cfg and let isort run against the r…
mcdonnnj Dec 23, 2019
db2a01a
Add "coverage < 5.0" to setup.py to enforce it because coveralls does…
mcdonnnj Dec 23, 2019
2fcac8e
Merge pull request #30 from cisagov/improvements/pull_in_upstream_and…
mcdonnnj Jan 6, 2020
67c6960
Add bump_version.sh and tag.sh to support bumping versions and taggin…
mcdonnnj Jan 10, 2020
5b6392d
Move semver requirement to test from install.
mcdonnnj Jan 10, 2020
e3e3d90
Move semver requirement from test requirements in setup.py to require…
mcdonnnj Jan 10, 2020
03278ca
Add comments explaining why a temp file is used when updating the ver…
mcdonnnj Jan 10, 2020
117070c
Merge pull request #31 from cisagov/improvement/add_version_bump_and_…
mcdonnnj Jan 10, 2020
92737fa
Add python_requires corresponding to listed Python versions in setup.py
mcdonnnj Jan 13, 2020
945a733
Merge pull request #32 from cisagov/improvement/add_python_requires
mcdonnnj Jan 14, 2020
2fa4cbe
Make workflow run when a PR is opened, synchronized, or reopened
jsf9k Jan 24, 2020
dbd589d
Improve list formatting
jsf9k Jan 24, 2020
a8e35d0
Merge pull request #29 from cisagov/improvement/better-handle-prs-fro…
jsf9k Jan 27, 2020
aaef908
Pull in changes to build workflow from skeleton-generic to support co…
mcdonnnj Jan 27, 2020
3356ecf
Merge pull request #33 from cisagov/improvement/pull_build_workflow_c…
mcdonnnj Jan 27, 2020
7db8787
Add schema library.
felddy Jan 29, 2020
229da93
Add schema checks for arguments.
felddy Jan 29, 2020
7cbaaa9
Add tests for new arguments
felddy Jan 29, 2020
8520a70
Removed uses of xfail.
felddy Jan 30, 2020
454553e
Bumping github actions python version to 3.8.
felddy Jan 30, 2020
decd0f7
Merge pull request #34 from cisagov/improvement/schema
felddy Jan 30, 2020
5327516
Backported changes to CONTRIBUTING.md from the development guide.
mcdonnnj Feb 10, 2020
3f6d654
Merge pull request #31 from cisagov/improvements/add_wsl_instructions
mcdonnnj Feb 10, 2020
f7a4166
Update Python version used to 3.8
mcdonnnj Feb 11, 2020
8116a89
Merge pull request #32 from cisagov/improvements/update_python_versio…
mcdonnnj Feb 11, 2020
b857939
Run pre-commit autoupdate.
mcdonnnj Feb 12, 2020
d99fd00
Flip cache order to mirror how it is done downstream.
mcdonnnj Feb 12, 2020
16872bf
Merge pull request #33 from cisagov/improvement/update_pre-commit_hooks
mcdonnnj Feb 12, 2020
965c3d9
Merge branch 'develop' of github.com:cisagov/skeleton-generic into im…
mcdonnnj Feb 12, 2020
fd03337
Fix spacing before comment in .bandit.yml (shown with pre-commit run …
mcdonnnj Feb 12, 2020
49f7002
Unpin coverage as coveralls supports coverage 5.0+ as of 1.10.0
mcdonnnj Feb 12, 2020
96675a1
Add --verbose flag to the coveralls call in the test workflow.
mcdonnnj Feb 12, 2020
df8a7eb
Pin coveralls version to see if the service_number addition in 1.11.0…
mcdonnnj Feb 12, 2020
8785abe
Remove --verbose from coveralls call in test workflow.
mcdonnnj Feb 12, 2020
6a7210c
Pin to testing branch per https://github.com/coveralls-clients/covera…
mcdonnnj Feb 14, 2020
d59f5f9
Change coveralls pin to avoid the version with the regression. 1.11.1…
mcdonnnj Feb 16, 2020
e96577b
All references to '-r' for pip calls have been replaced with the more…
mcdonnnj Feb 18, 2020
a17986b
Merge pull request #34 from cisagov/improvements/use_verbose_pip_swit…
mcdonnnj Feb 19, 2020
23425da
Merge branch 'develop' of github.com:cisagov/skeleton-generic into im…
mcdonnnj Feb 19, 2020
0478f94
Adjust language in description of pre-commit step in the GitHub Actio…
mcdonnnj Feb 19, 2020
a06c5ec
Merge pull request #36 from cisagov/improvements/pull_in_upstream_upd…
mcdonnnj Feb 19, 2020
af261c3
Autoupdate pre-commit hooks. Add mypy.
felddy Feb 20, 2020
b68db4c
Sort .gitignore add mypy cache.
felddy Feb 20, 2020
3172a99
Add PEP 484 type hints.
felddy Feb 20, 2020
067ee08
Autoupdate pre-commit hooks. Add mypy.
felddy Feb 20, 2020
4ae80fd
Merge pull request #37 from cisagov/improvement/static_type_checking
felddy Feb 21, 2020
6369cc6
Merge pull request #35 from cisagov/improvement/static_type_checking
felddy Feb 21, 2020
bf36608
Add .mypy_cache to .gitignore
jsf9k Mar 2, 2020
c7f339f
Merge pull request #36 from cisagov/improvement/add-mypy-cache-to-git…
jsf9k Mar 2, 2020
454864b
Incorporate the Python version into keys for pip and pre-commit caches.
mcdonnnj Mar 3, 2020
b58f7a1
Merge pull request #37 from cisagov/add_python_version_to_cache_keys
mcdonnnj Mar 3, 2020
6fd982c
Merge branch 'develop' of github.com:cisagov/skeleton-generic into bu…
mcdonnnj Mar 3, 2020
478f168
Change the cache paths from hardcoded values in their appropriate blo…
mcdonnnj Mar 4, 2020
6505b32
Merge pull request #38 from cisagov/bugfix/pull_in_pre-commit_fix
mcdonnnj Mar 4, 2020
241484a
Merge pull request #38 from cisagov/change_cache_paths_to_env_variables
mcdonnnj Mar 4, 2020
d791334
Add a rule for markdownlint to allow multiple headers with the same n…
mcdonnnj Mar 4, 2020
f5fd431
Merge pull request #39 from cisagov/add_mdl_rule_for_MD024
mcdonnnj Mar 4, 2020
61790a9
Fixed broken hook id for pre-commit-terraform:
mcdonnnj Mar 31, 2020
757a861
Merge pull request #40 from cisagov/improvements/update_pre-commit
mcdonnnj Mar 31, 2020
39abc2c
Merge branch 'develop' of github.com:cisagov/skeleton-generic into im…
mcdonnnj Mar 31, 2020
61d3644
Merge pull request #39 from cisagov/improvements/upstream_updates
mcdonnnj Mar 31, 2020
0bc1aab
Ran `pre-commit autoupdate` to get the latest version of the
mcdonnnj Apr 6, 2020
b01a0ee
Explicitly install pre-commit hooks as its own step so it's clearer w…
mcdonnnj Apr 6, 2020
1f3d440
Rename action to accurately reflect that we are only linting, not bui…
mcdonnnj Apr 6, 2020
647b351
Sort .gitignore entries.
mcdonnnj Apr 6, 2020
89b098a
Merge pull request #41 from cisagov/bugfix/update_pre-commit_for_pre-…
mcdonnnj Apr 7, 2020
14e3362
Merge branch 'develop' of github.com:cisagov/skeleton-generic into im…
mcdonnnj Apr 7, 2020
a988a2d
Remove duplicate '.mypy_cache' entry in .gitignore
mcdonnnj Apr 7, 2020
f65532f
Merge pull request #40 from cisagov/improvements/pull_upstream_updates
mcdonnnj Apr 7, 2020
c8b4bcf
Update CODEOWNERS
hillaryj Apr 14, 2020
175ae71
Merge pull request #42 from cisagov/hillaryj-owner
hillaryj Apr 15, 2020
ab8810b
Merge remote-tracking branch 'skeleton-generic/develop' into improvem…
jsf9k Apr 27, 2020
7c776f4
Merge pull request #41 from cisagov/improvement/upstream-changes
jsf9k Apr 27, 2020
8c99c52
Allow events from apb to rebuild this repository weekly.
felddy May 1, 2020
3301dfa
Merge pull request #43 from cisagov/improvement/apb-events
felddy May 1, 2020
7d7a677
Updated pre-commit configuration with 'pre-commit autoupdate'.
mcdonnnj May 8, 2020
b724c79
Add Lineage configuration.
felddy May 12, 2020
35d8d81
Merge pull request #42 from cisagov/improvement/lineage
felddy May 12, 2020
ce6658a
Update isort pre-commit hook source repository.
mcdonnnj May 13, 2020
daaebc1
Ran pre-commit autoupdate.
mcdonnnj May 13, 2020
2399f24
Remove legacy comment from the isort hook declaration.
mcdonnnj May 13, 2020
fe4d5eb
Disable the terraform_validate hook.
mcdonnnj May 13, 2020
4d4db07
Merge branch 'develop' into improvements/pre-commit_autoupdate_2020-05
mcdonnnj May 13, 2020
f831ef8
Add final statement to descriptionf or why terraform_validate is disa…
mcdonnnj May 14, 2020
64edcc2
Merge branch 'improvements/pre-commit_autoupdate_2020-05' of github.c…
mcdonnnj May 14, 2020
70f0cbd
Merge pull request #44 from cisagov/improvements/pre-commit_autoupdat…
mcdonnnj May 14, 2020
5dded15
Merge github.com:cisagov/skeleton-generic into improvement/upstream
felddy May 21, 2020
2e48716
Merge pull request #43 from cisagov/improvement/upstream
felddy May 21, 2020
87ea530
Add setuptools and wheel as pip dependencies
jsf9k Jun 9, 2020
7f8d430
Pull in requirements.txt from requirements-test.txt
jsf9k Jun 9, 2020
6668e3b
Merge pull request #45 from cisagov/improvement/add-wheel
jsf9k Jun 9, 2020
e211491
Resolve Lineage conflicts.
mcdonnnj Jun 15, 2020
370f2a2
Remove requirements that already exist in setup.py to align with a Si…
mcdonnnj Jun 15, 2020
50b3841
Merge pull request #44 from cisagov/lineage/skeleton
mcdonnnj Jun 16, 2020
d2d0500
Switch test and build workflows to use a matrix of Python versions.
mcdonnnj Jun 19, 2020
6f6f597
Fix typo and use matrix.python-version instead of env.PY_VERSION.
mcdonnnj Jun 19, 2020
2915b78
Merge pull request #45 from cisagov/improvement/test_multiple_python_…
mcdonnnj Jun 19, 2020
af06915
Add tool and docs to automate development environment setup.
felddy Jun 22, 2020
c50094a
Fix typo.
felddy Jun 22, 2020
3c2781c
Correct syntax on fence.
felddy Jun 22, 2020
23ef29c
Clarify comment with text from `pyenv local --help`
felddy Jun 22, 2020
5d1d134
Change to python3 to standardize how we call python.
felddy Jun 22, 2020
8a105ca
Respect customs.
felddy Jun 22, 2020
ae21af1
Improve usage message.
felddy Jun 22, 2020
c5e7edf
Add flag to install pre-commit hooks now.
felddy Jun 22, 2020
482a370
Switch to a POSIX compliant command... command.
felddy Jun 22, 2020
466ef0c
Sort command line flag case statement.
felddy Jun 22, 2020
996ae26
Add recommendation to install brew, instead of assuming it is available.
felddy Jun 22, 2020
31980ed
Clean up usage syntax since we now have multiple options.
felddy Jun 22, 2020
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
582837a
Apply initial py3 changes
hillaryj Aug 3, 2020
0e1a660
Pull from skeleton
hillaryj Aug 11, 2020
7a72160
Remove previous merge symbols
hillaryj Aug 12, 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
871f217
Update from skeleton defaults
hillaryj Sep 4, 2020
64b108f
Resolve lingering references to skeleton-python-library
mcdonnnj Sep 4, 2020
a62fdf9
Resolve testing failures
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
deb8294
Merge github.com:cisagov/skeleton-python-library into skeletonize
mcdonnnj Sep 30, 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
2a820a1
Fix some bugs introduced in the switch
mcdonnnj Oct 9, 2020
ccad581
Update logging
mcdonnnj 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
62df554
Merge branch 'develop' of github.com:cisagov/skeleton-python-library …
mcdonnnj Oct 20, 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
55d03c3
Resolve two migration bugs that were missed
mcdonnnj Oct 30, 2020
f319492
Merge github.com:cisagov/skeleton-python-library into skeletonize
mcdonnnj Oct 30, 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
05e189a
Some last polish and checking
mcdonnnj Nov 10, 2020
02c5a6f
Use the python version output by actions/setup-python
jsf9k Nov 11, 2020
582214a
Resolve new LGTM alert
mcdonnnj Nov 11, 2020
414dae1
Update README with link to commander repository
mcdonnnj Nov 12, 2020
a9ee3dd
Make sure the requirements in setup.py are sorted
mcdonnnj Nov 13, 2020
01fcc26
Remove the unused Dockerfile configuration
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
514e491
Merge branch 'develop' of github.com:cisagov/skeleton-python-library …
mcdonnnj Dec 2, 2020
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
14 changes: 14 additions & 0 deletions .bandit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
# Configuration file for the Bandit python security scanner
# https://bandit.readthedocs.io/en/latest/config.html
# This config is applied to bandit when scanning the "tests" tree

# Tests are first included by `tests`, and then excluded by `skips`.
# If `tests` is empty, all tests are are considered included.

tests:
# - B101
# - B102

skips:
- B101 # skip "assert used" check since assertions are required in pytests
12 changes: 12 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This is the configuration for code coverage checks
# https://coverage.readthedocs.io/en/latest/config.html

[run]
source = src/cyhy_runner
omit =
branch = true

[report]
exclude_lines =
if __name__ == "__main__":
show_missing = true
25 changes: 25 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[flake8]
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) -
# http://flake8.pycqa.org/en/latest/glossary.html#term-pyflakes
# * Default warnings reported by flake8-bugbear (B) -
# https://github.com/PyCQA/flake8-bugbear#list-of-warnings
# * The B950 flake8-bugbear opinionated warning -
# https://github.com/PyCQA/flake8-bugbear#opinionated-warnings
select = C,D,E,F,W,B,B950
# Ignore flake8's default warning about maximum line length, which has
# a hard stop at the configured value. Instead we use
# flake8-bugbear's B950, which allows up to 10% overage.
#
# Also ignore flake8's warning about line breaks before binary
# operators. It no longer agrees with PEP8. See, for example, here:
# https://github.com/ambv/black/issues/21. Guido agrees here:
# https://github.com/python/peps/commit/c59c4376ad233a62ca4b3a6060c81368bd21e85b.
ignore = E501,W503
7 changes: 7 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 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 @hillaryj @jsf9k @mcdonnnj
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---

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

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
6 changes: 6 additions & 0 deletions .github/lineage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
version: "1"

lineage:
skeleton:
remote-url: https://github.com/cisagov/skeleton-python-library.git
111 changes: 111 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
---
name: build

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

env:
PIP_CACHE_DIR: ~/.cache/pip
PRE_COMMIT_CACHE_DIR: ~/.cache/pre-commit

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Store installed Python version
run: |
echo "PY_VERSION="\
"$(python -c "import platform;print(platform.python_version())")" \
>> $GITHUB_ENV
- name: Cache linting environments
uses: actions/cache@v2
with:
path: |
${{ env.PIP_CACHE_DIR }}
${{ env.PRE_COMMIT_CACHE_DIR }}
key: "lint-${{ runner.os }}-py${{ env.PY_VERSION }}-\
${{ hashFiles('**/requirements-test.txt') }}-\
${{ hashFiles('**/requirements.txt') }}-\
${{ hashFiles('**/.pre-commit-config.yaml') }}"
restore-keys: |
lint-${{ runner.os }}-py${{ env.PY_VERSION }}-
lint-${{ runner.os }}-
- 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
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Cache testing environments
uses: actions/cache@v2
with:
path: ${{ env.PIP_CACHE_DIR }}
key: "test-${{ runner.os }}-py${{ matrix.python-version }}-\
${{ hashFiles('**/requirements-test.txt') }}-\
${{ hashFiles('**/requirements.txt') }}"
restore-keys: |
test-${{ runner.os }}-py${{ matrix.python-version }}-
test-${{ runner.os }}-
- 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_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
if: success()
build:
runs-on: ubuntu-latest
needs: [lint, test]
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Cache building environments
uses: actions/cache@v2
with:
path: ${{ env.PIP_CACHE_DIR }}
key: "build-${{ runner.os }}-py${{ matrix.python-version }}-\
${{ hashFiles('**/requirements.txt') }}"
restore-keys: |
build-${{ runner.os }}-py${{ matrix.python-version }}-
build-${{ runner.os }}-
- 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
76 changes: 76 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---
# 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:
# Push on all branches
# branches: [develop]
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
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# 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
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DS_Store
*.pyc
._*
__pycache__
.coverage
.mypy_cache
.pytest_cache
.python-version
*.egg-info
.ipynb_checkpoints
10 changes: 10 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[settings]
combine_star=true
force_sort_within_sections=true

import_heading_stdlib=Standard Python Libraries
import_heading_thirdparty=Third-Party Libraries
import_heading_firstparty=cisagov Libraries

# Run isort under the black profile to align with our other Python linting
profile=black
10 changes: 10 additions & 0 deletions .mdl_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"MD013": {
"code_blocks": false,
"tables": false
},
"MD024": {
"allow_different_nesting": true
},
"default": true
}
Loading