From 4627cbf956953e188d2c01101c16cb396f6f64b4 Mon Sep 17 00:00:00 2001 From: BenFielder Date: Thu, 24 Sep 2026 13:44:11 +0100 Subject: [PATCH 1/3] Update typo --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 222f4de..1f56847 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# platform-scripts +# Platform Scripts ## What's the purpose of this repository? -To have a centralised place for all random miscellaneous platorm scripts to be stored for potental future use +To have a centralised place for all random miscellaneous platform scripts to be stored for potental future use ## How to Work with this Repo -If you are adding a new script, please create a new folder for your script, then add your script in the folder preferably along with a short readme talking about your script, so that other engineers understand what it does! \ No newline at end of file +If you are adding a new script, please create a new folder for your script, then add your script in the folder preferably along with a short readme talking about your script, so that other engineers can understand what it does! \ No newline at end of file From aa613cacbd35a908a1903ba40765b395e8c04b92 Mon Sep 17 00:00:00 2001 From: BenFielder Date: Thu, 24 Sep 2026 13:46:26 +0100 Subject: [PATCH 2/3] Add pyproject for linting --- pyproject.toml | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..eda6401 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,55 @@ +[tool.black] +line-length = 100 + +[tool.poetry] +name = "dbt-platform-helper" +version = "15.37.0" +description = "Set of tools to help transfer applications/services from GOV.UK PaaS to DBT PaaS augmenting AWS Copilot." +authors = ["Department for Business and Trade Platform Team "] +license = "MIT" +readme = "dbt_platform_helper/README.md" +packages = [ + { include = "dbt_platform_helper" }, + { include = "platform_helper.py" }, + { include = "terraform/elasticache-redis/plans.yml" }, + { include = "terraform/opensearch/plans.yml" }, + { include = "terraform/postgres/plans.yml" }, +] + +[tool.poetry.scripts] +platform-helper = "platform_helper:platform_helper" + +[tool.poetry.dependencies] +Jinja2 = "3.1.6" +yamllint = "^1.35.1" +boto3 = "^1.35.2" +botocore = "^1.34.85" +click = "^8.1.3" +python = ">3.10.0,<4.0" +schema = "0.7.8" +jinja2-simple-tags = ">=0.5,<0.7" +requests = "^2.31.0" +prettytable = "^3.9.0" +slack-sdk = "^3.27.1" +psycopg2-binary = "^2.9.9" +pydantic = "^2.11.7" +cfn-flip = "^1.3.0" + +[tool.poetry.group.dev.dependencies] +moto = {extras = ["all"], version = "^5.0.28"} +pyfakefs = ">=5.2.2,<7.0.0" +pytest = ">=8.3.5,<10.0.0" +pytest-env = ">=0.8.1,<1.8.0" +tox = "^4.6.0" +pre-commit = ">=3.3.3,<5.0.0" +freezegun = "^1.2.2" +parameterized = "^0.9.0" +pytest-xdist = "^3.5.0" +pytest-cov = ">=6,<8" +mypy-boto3-codebuild = "^1.40.8" +python-hcl2 = ">=7.3.1,<9.0.0" +boto3-stubs = "^1.26.148" + +[build-system] +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api" \ No newline at end of file From bfc44312669f51b609e0c2aa1a3fbedf7fb4a293 Mon Sep 17 00:00:00 2001 From: BenFielder Date: Thu, 24 Sep 2026 13:49:10 +0100 Subject: [PATCH 3/3] Remove files --- .github/workflows/linting-checks.yml | 39 -------------------- pyproject.toml | 55 ---------------------------- 2 files changed, 94 deletions(-) delete mode 100644 .github/workflows/linting-checks.yml delete mode 100644 pyproject.toml diff --git a/.github/workflows/linting-checks.yml b/.github/workflows/linting-checks.yml deleted file mode 100644 index 23a1342..0000000 --- a/.github/workflows/linting-checks.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Linting - -on: [push] - -jobs: - lint: - name: Run lint checks - permissions: - contents: read - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1 - - - name: Set up Python - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 #v7.0.0 - - - name: Install dependencies - run: | - pip install poetry - poetry install - - - name: black - run: poetry run pre-commit run black --all-files - - - name: mixed-line-ending - run: poetry run pre-commit run mixed-line-ending --all-files - - - name: detect-private-key - run: poetry run pre-commit run detect-private-key --all-files - - - name: autoflake - run: poetry run pre-commit run autoflake --all-files - - - name: docformatter - run: poetry run pre-commit run docformatter --all-files - - - name: docs - run: poetry run pre-commit run docs --all-files \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index eda6401..0000000 --- a/pyproject.toml +++ /dev/null @@ -1,55 +0,0 @@ -[tool.black] -line-length = 100 - -[tool.poetry] -name = "dbt-platform-helper" -version = "15.37.0" -description = "Set of tools to help transfer applications/services from GOV.UK PaaS to DBT PaaS augmenting AWS Copilot." -authors = ["Department for Business and Trade Platform Team "] -license = "MIT" -readme = "dbt_platform_helper/README.md" -packages = [ - { include = "dbt_platform_helper" }, - { include = "platform_helper.py" }, - { include = "terraform/elasticache-redis/plans.yml" }, - { include = "terraform/opensearch/plans.yml" }, - { include = "terraform/postgres/plans.yml" }, -] - -[tool.poetry.scripts] -platform-helper = "platform_helper:platform_helper" - -[tool.poetry.dependencies] -Jinja2 = "3.1.6" -yamllint = "^1.35.1" -boto3 = "^1.35.2" -botocore = "^1.34.85" -click = "^8.1.3" -python = ">3.10.0,<4.0" -schema = "0.7.8" -jinja2-simple-tags = ">=0.5,<0.7" -requests = "^2.31.0" -prettytable = "^3.9.0" -slack-sdk = "^3.27.1" -psycopg2-binary = "^2.9.9" -pydantic = "^2.11.7" -cfn-flip = "^1.3.0" - -[tool.poetry.group.dev.dependencies] -moto = {extras = ["all"], version = "^5.0.28"} -pyfakefs = ">=5.2.2,<7.0.0" -pytest = ">=8.3.5,<10.0.0" -pytest-env = ">=0.8.1,<1.8.0" -tox = "^4.6.0" -pre-commit = ">=3.3.3,<5.0.0" -freezegun = "^1.2.2" -parameterized = "^0.9.0" -pytest-xdist = "^3.5.0" -pytest-cov = ">=6,<8" -mypy-boto3-codebuild = "^1.40.8" -python-hcl2 = ">=7.3.1,<9.0.0" -boto3-stubs = "^1.26.148" - -[build-system] -requires = ["poetry-core"] -build-backend = "poetry.core.masonry.api" \ No newline at end of file