From 5de12f3acd63450c590664b12be46e268fa428d5 Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Wed, 22 Oct 2025 15:31:55 -0700 Subject: [PATCH] Remove really old secret clearing code that doesn't apply anymore --- .../3deb7273fd0b4516a6c66636e3c1ed34.md | 4 +++ script/coverage | 16 ---------- script/markdown-toc | 31 ------------------- script/test | 16 ---------- 4 files changed, 4 insertions(+), 63 deletions(-) create mode 100644 .changelog/3deb7273fd0b4516a6c66636e3c1ed34.md delete mode 100755 script/markdown-toc diff --git a/.changelog/3deb7273fd0b4516a6c66636e3c1ed34.md b/.changelog/3deb7273fd0b4516a6c66636e3c1ed34.md new file mode 100644 index 0000000..455e625 --- /dev/null +++ b/.changelog/3deb7273fd0b4516a6c66636e3c1ed34.md @@ -0,0 +1,4 @@ +--- +type: none +--- +Remove really old secret clearing code that doesn't apply anymore \ No newline at end of file diff --git a/script/coverage b/script/coverage index ce903e9..c47d2ca 100755 --- a/script/coverage +++ b/script/coverage @@ -5,22 +5,6 @@ SCRIPT_PATH="$( dirname -- "$( readlink -f -- "${0}"; )"; )" # Activate OctoDNS Python venv source "${SCRIPT_PATH}/common.sh" -# Just to be sure/safe -export AWS_ACCESS_KEY_ID= -export AWS_SECRET_ACCESS_KEY= -export CLOUDFLARE_EMAIL= -export CLOUDFLARE_TOKEN= -export DNSIMPLE_ACCOUNT= -export DNSIMPLE_TOKEN= -export DYN_CUSTOMER= -export DYN_PASSWORD= -export DYN_USERNAME= -export GOOGLE_APPLICATION_CREDENTIALS= -export ARM_CLIENT_ID= -export ARM_CLIENT_SECRET= -export ARM_TENANT_ID= -export ARM_SUBSCRIPTION_ID= - SOURCE_DIR="octodns/" # Don't allow disabling coverage diff --git a/script/markdown-toc b/script/markdown-toc deleted file mode 100755 index 2b192ef..0000000 --- a/script/markdown-toc +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env python - -from re import compile -from sys import stdin - -splitter = compile(r'\s+') - -in_pre = False -headings = [] -for line in stdin: - if line.startswith('```'): - in_pre = not in_pre - if in_pre or not line.startswith('#'): - continue - level, heading = splitter.split(line, 1) - if 'Table of Contents' in heading: - continue - headings.append((len(level), heading.strip())) - -# ignore the first one, it's more of a title -headings.pop(0) - -print('\n## Table of Contents\n') -min_level = min(h[0] for h in headings) -for heading in headings: - level = heading[0] - min_level - pre = ' ' * (level * 3) - title = heading[1] - link = title.lower().replace(' ', '-').replace('`', '') - print(f'{pre}* [{title}](#{link})') -print() diff --git a/script/test b/script/test index 2f0dc30..0bde9a7 100755 --- a/script/test +++ b/script/test @@ -5,20 +5,4 @@ SCRIPT_PATH="$( dirname -- "$( readlink -f -- "${0}"; )"; )" # Activate OctoDNS Python venv source "${SCRIPT_PATH}/common.sh" -# Just to be sure/safe -export AWS_ACCESS_KEY_ID= -export AWS_SECRET_ACCESS_KEY= -export CLOUDFLARE_EMAIL= -export CLOUDFLARE_TOKEN= -export DNSIMPLE_ACCOUNT= -export DNSIMPLE_TOKEN= -export DYN_CUSTOMER= -export DYN_PASSWORD= -export DYN_USERNAME= -export GOOGLE_APPLICATION_CREDENTIALS= -export ARM_CLIENT_ID= -export ARM_CLIENT_SECRET= -export ARM_TENANT_ID= -export ARM_SUBSCRIPTION_ID= - pytest --disable-network "$@"