generated from timoguin/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expanded testing, plus new models for AWS Config, SQS, SNS (#16)
Adds a number of improvements. Tests will need to be revisited, but I've added a decent base. Bumps to v0.1.1 ### Added - Adds support for generating a Graphviz diagram of an Organization with the new `OrganizationDataBuilder.to_dot()` function - Adds `DOT` as a supported output format for the `organization dump-all` command - Adds models for AWS Config notifications - Adds models for SQS and SNS messages - Adds methods to ModelBase to allow (de)serializing JSON or YAML strings - Adds ModelBase.from_dict() to initialize a model from a dict using dacite - Adds CodeQL analysis workflow for GitHub Actions ### Changed - breaking: Renames `organization dump-json` CLI command to `organization dump-all` - Moves buiders into the models namespace
- Loading branch information
Showing
51 changed files
with
3,729 additions
and
1,384 deletions.
There are no files selected for viewing
Empty file.
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,3 +127,41 @@ jobs: | |
|
||
- name: Run tests | ||
run: make test | ||
|
||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install Poetry | ||
uses: snok/[email protected] | ||
with: | ||
virtualenvs-create: false | ||
virtualenvs-in-project: true | ||
|
||
- name: Restore cache venv | ||
uses: syphar/restore-virtualenv@v1 | ||
id: cache-venv | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/[email protected] | ||
with: | ||
languages: python | ||
setup_python_dependencies: false | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/[email protected] |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
# pre-commit run --all-files | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.4.0 | ||
rev: v4.0.1 | ||
hooks: | ||
- id: check-ast | ||
- id: check-json | ||
- id: check-merge-conflict | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: detect-aws-credentials | ||
args: ["--allow-missing-credentials"] | ||
- id: detect-private-key | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
- id: no-commit-to-branch | ||
- id: trailing-whitespace | ||
- repo: https://github.com/psf/black | ||
rev: 21.6b0 | ||
rev: 21.11b1 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/asottile/blacken-docs | ||
rev: v1.10.0 | ||
rev: v1.12.0 | ||
hooks: | ||
- id: blacken-docs | ||
additional_dependencies: [black==21.6b0] | ||
- repo: https://github.com/flakehell/flakehell | ||
rev: v.0.8.0 | ||
hooks: | ||
- name: Run flakehell static analysis tool | ||
id: flakehell | ||
# Disable flakehell for now due to import bug with newer flake8 | ||
# https://github.com/flakehell/flakehell/issues/22 | ||
# - repo: https://github.com/flakehell/flakehell | ||
# rev: v.0.9.0 | ||
# hooks: | ||
# - name: Run flakehell static analysis tool | ||
# id: flakehell |
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 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 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 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
Empty file.
Oops, something went wrong.