From 5076e3d4f10dd45d8033bddecd3c9e04dae5f496 Mon Sep 17 00:00:00 2001 From: "Luke Tainton (ltainton)" Date: Mon, 5 Feb 2024 19:59:40 +0000 Subject: [PATCH] Add Dependabot --- .github/CODEOWNERS | 1 + .github/dependabot.yml | 44 ++++++++++++++++++++++++++ renovate.json => .github/renovate.json | 0 .github/workflows/ci.yml | 13 ++++---- app/main.py | 5 +-- requirements.txt | 1 - 6 files changed, 53 insertions(+), 11 deletions(-) create mode 100644 .github/CODEOWNERS create mode 100644 .github/dependabot.yml rename renovate.json => .github/renovate.json (100%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..0d35f6e --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @luketainton \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..75c8aaa --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,44 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + assignees: + - "luketainton" + reviewers: + - "luketainton" + commit-message: + prefix: "chore(actions)" + include: "scope" + labels: + - "dependencies" + + - package-ecosystem: "docker" + directory: "/" + schedule: + interval: "daily" + assignees: + - "luketainton" + reviewers: + - "luketainton" + commit-message: + prefix: "chore(docker)" + include: "scope" + labels: + - "dependencies" + + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "daily" + assignees: + - "luketainton" + reviewers: + - "luketainton" + commit-message: + prefix: "chore(pip-prod)" + prefix-development: "chore(pip-dev)" + include: "scope" + labels: + - "dependencies" diff --git a/renovate.json b/.github/renovate.json similarity index 100% rename from renovate.json rename to .github/renovate.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bfea3be..60e53fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,18 +1,19 @@ name: CI on: push: - branches: [ main ] + branches: [main] pull_request: types: [opened, synchronize, reopened] paths-ignore: - - 'README.md' - - 'LICENSE.md' - - '.gitignore' - - 'CODEOWNERS' - - 'renovate.json' + - "README.md" + - "LICENSE.md" + - ".gitignore" + - "CODEOWNERS" + - "renovate.json" jobs: ci: uses: luketainton/gha-workflows/.github/workflows/ci-python.yml@main secrets: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} diff --git a/app/main.py b/app/main.py index 52bc1cd..99a7996 100644 --- a/app/main.py +++ b/app/main.py @@ -3,7 +3,6 @@ """Get 6to4 address from IPv4 address.""" import argparse -import sentry_sdk def parse_args(): # pragma: no cover @@ -21,7 +20,7 @@ def parse_args(): # pragma: no cover def ipv4_to_ipv6(ipv4): - """COnvert IPv4 address to IPv6.""" + """Convert IPv4 address to IPv6.""" ipv4_hex = "" ipv6_hextets = ["", ""] @@ -54,8 +53,6 @@ def ipv4_to_ipv6(ipv4): def main(): # pragma: no cover """Main function.""" - sentry_sdk.init("https://14fab091f12c45d299569dcefd1bd716@app.glitchtip.com/1704") - ipv4 = parse_args().address output = ipv4_to_ipv6(ipv4) print(output) diff --git a/requirements.txt b/requirements.txt index 1d339b7..e69de29 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +0,0 @@ -sentry-sdk