-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #338 from backplane/rds-storage-info
add support for RDS storage reporting; misc improvements
- Loading branch information
Showing
9 changed files
with
480 additions
and
228 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# workflow which lints and checks the code on every push and pull request | ||
name: Check | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# https://github.com/actions/checkout | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
||
# https://github.com/actions/setup-python | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
cache: 'pip' # caching pip dependencies | ||
|
||
- name: Install Deps | ||
run: pip install -r requirements.txt -r requirements.dev.txt | ||
|
||
# https://github.com/pre-commit/action | ||
- name: run pre-commit | ||
uses: pre-commit/[email protected] | ||
env: | ||
SKIP: no-commit-to-branch |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,105 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-case-conflict | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: mixed-line-ending | ||
args: | ||
- --fix=lf | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: detect-private-key | ||
- id: no-commit-to-branch | ||
args: | ||
- --branch | ||
- main | ||
|
||
- repo: https://github.com/rhysd/actionlint | ||
rev: v1.6.26 | ||
hooks: | ||
- id: actionlint-docker | ||
name: check github workflows with actionlint | ||
|
||
- repo: https://github.com/koalaman/shellcheck-precommit | ||
rev: v0.9.0 | ||
hooks: | ||
- id: shellcheck | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 23.11.0 | ||
hooks: | ||
- id: black | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
args: | ||
- "--profile" | ||
- "black" | ||
- "--filter-files" | ||
|
||
- repo: https://github.com/PyCQA/bandit | ||
rev: 1.7.5 | ||
hooks: | ||
- id: bandit | ||
|
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.1.0 | ||
hooks: | ||
- id: flake8 | ||
args: | ||
- "--max-line-length=88" | ||
- "--extend-ignore=E203,E501" | ||
|
||
# - repo: https://github.com/pycqa/pylint | ||
# rev: "v3.0.1" | ||
# hooks: | ||
# - id: pylint | ||
|
||
# https://pylint.pycqa.org/en/latest/user_guide/installation/pre-commit-integration.html | ||
- repo: local | ||
hooks: | ||
- id: pylint | ||
name: pylint | ||
entry: pylint | ||
language: system | ||
types: [python] | ||
args: | ||
[ | ||
"-rn", # Only display messages | ||
"-sn", # Don't display the score | ||
] | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.7.0 | ||
hooks: | ||
- id: mypy | ||
# additional_dependencies: | ||
# - types-requests | ||
|
||
# - repo: https://github.com/jendrikseipp/vulture | ||
# rev: v2.7 | ||
# hooks: | ||
# - id: vulture | ||
|
||
- repo: https://github.com/Lucas-C/pre-commit-hooks-safety | ||
rev: v1.3.2 | ||
hooks: | ||
- id: python-safety-dependencies-check | ||
files: "requirements.txt" | ||
|
||
# - repo: local | ||
# hooks: | ||
# - id: pytest-check | ||
# name: pytest-check | ||
# entry: pytest | ||
# language: system | ||
# pass_filenames: false | ||
# always_run: true |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
bandit~=1.7.5 | ||
black~=23.11.0 | ||
boto3-stubs~=1.29.6 | ||
bpython~=0.24 | ||
flake8~=6.1.0 | ||
isort~=5.12.0 | ||
mypy~=1.7.0 | ||
pycodestyle~=2.11.1 | ||
pylint~=3.0.2 | ||
pytest~=7.4.3 |
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 +1 @@ | ||
boto3~=1.28.16 | ||
boto3~=1.29.6 |
Oops, something went wrong.