-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
94 changed files
with
29,586 additions
and
1,937 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,22 @@ | ||
name: Auto-approve Dependabot PRs | ||
on: | ||
schedule: | ||
- cron: "7 * * * *" | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
jobs: | ||
auto-approve: | ||
name: Auto-approve minor and patch updates | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: koj-co/dependabot-pr-action@master | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
approve-minor: true | ||
approve-patch: 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
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,72 @@ | ||
repos: | ||
# - repo: https://github.com/asottile/pyupgrade | ||
# rev: v2.15.0 | ||
# hooks: | ||
# - id: pyupgrade | ||
# args: | ||
# - --py36-plus | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 21.5b2 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
args: ["-c"] | ||
|
||
- repo: https://github.com/pycqa/flake8 | ||
rev: 3.9.2 | ||
hooks: | ||
- id: flake8 | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.8.0 | ||
hooks: | ||
- id: isort | ||
args: ["-c"] | ||
|
||
- repo: https://github.com/Lucas-C/pre-commit-hooks-bandit | ||
rev: v1.0.5 | ||
hooks: | ||
- id: python-bandit-vulnerability-check | ||
alias: bandit | ||
args: ["-r", "noggin/", "-x", "noggin/tests/", "-ll"] | ||
# - repo: local | ||
# hooks: | ||
# - id: bandit-local | ||
# name: bandit | ||
# entry: bandit | ||
# args: ["-r", "noggin/", "-x", "noggin/tests/", "-ll"] | ||
# pass_filenames: false | ||
# language: system | ||
|
||
- repo: https://github.com/myint/rstcheck | ||
rev: 3f92957 | ||
hooks: | ||
- id: rstcheck | ||
args: ["-r", "docs"] | ||
additional_dependencies: [sphinx] | ||
|
||
- repo: https://github.com/Lucas-C/pre-commit-hooks-safety | ||
rev: v1.2.1 | ||
hooks: | ||
- id: python-safety-dependencies-check | ||
alias: safety | ||
additional_dependencies: ["poetry"] | ||
# - repo: local | ||
# hooks: | ||
# - id: safety-local | ||
# name: safety | ||
# entry: safety | ||
# args: [check, --full-report] | ||
# language: system | ||
# pass_filenames: false | ||
|
||
|
||
- repo: local | ||
hooks: | ||
- id: liccheck | ||
name: liccheck | ||
entry: ./devel/run-liccheck.sh | ||
files: "(pyproject.toml|poetry.lock)" | ||
pass_filenames: false | ||
language: script |
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,5 +1,5 @@ | ||
--- | ||
ipa_admin_user: admin | ||
ipa_admin_password: adminPassw0rd! | ||
krb_master_password: adminPassw0rd! | ||
krb_main_password: adminPassw0rd! | ||
krb_realm: NOGGIN.TEST |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
trap 'rm -f "$TMPFILE"' EXIT | ||
|
||
set -e | ||
|
||
TMPFILE=$(mktemp -t noggin-requirements-XXXXXX.txt) | ||
|
||
# Note: we can't use poetry export because it isn't smart enough with conditional dependencies: | ||
# flake8 requires importlib_metadata on python < 3.8, so it's not installed, but it's exported | ||
# and liccheck crashes on packages listed in the req file but not installed. | ||
# poetry export --dev -f requirements.txt -o $TMPFILE | ||
|
||
poetry run pip freeze --exclude-editable --isolated > $TMPFILE | ||
poetry run liccheck -r $TMPFILE |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.