From 2a4803830d5f88950ac71e57761de70e80d94b4a Mon Sep 17 00:00:00 2001 From: Matthew Watkins Date: Tue, 7 May 2024 13:20:42 +0100 Subject: [PATCH] Chore: Remove redundant repo content Signed-off-by: Matthew Watkins --- .aicoe-ci.yaml | 16 --------- .github/CODEOWNERS | 1 - .github/ISSUE_TEMPLATE/bug_report.md | 29 ---------------- .github/ISSUE_TEMPLATE/feature_request.md | 21 ------------ .github/ISSUE_TEMPLATE/major-release.md | 17 ---------- .github/ISSUE_TEMPLATE/minor-release.md | 17 ---------- .github/ISSUE_TEMPLATE/patch-release.md | 17 ---------- .../redeliver_container_image.md | 17 ---------- .../PULL_REQUEST_TEMPLATE/POLISH_TEMPLATE.md | 34 ------------------- .../PULL_REQUEST_TEMPLATE/SIMPLE_TEMPLATE.md | 20 ----------- .prow.yaml | 21 ------------ .thoth.yaml | 27 --------------- README.md | 33 ------------------ mypy.ini | 2 -- requirements.txt | 22 ------------ test_environment.py | 22 ------------ 16 files changed, 316 deletions(-) delete mode 100644 .aicoe-ci.yaml delete mode 100644 .github/CODEOWNERS delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.md delete mode 100644 .github/ISSUE_TEMPLATE/major-release.md delete mode 100644 .github/ISSUE_TEMPLATE/minor-release.md delete mode 100644 .github/ISSUE_TEMPLATE/patch-release.md delete mode 100644 .github/ISSUE_TEMPLATE/redeliver_container_image.md delete mode 100644 .github/PULL_REQUEST_TEMPLATE/POLISH_TEMPLATE.md delete mode 100644 .github/PULL_REQUEST_TEMPLATE/SIMPLE_TEMPLATE.md delete mode 100644 .prow.yaml delete mode 100644 .thoth.yaml delete mode 100644 README.md delete mode 100644 mypy.ini delete mode 100644 requirements.txt delete mode 100644 test_environment.py diff --git a/.aicoe-ci.yaml b/.aicoe-ci.yaml deleted file mode 100644 index a1475e8..0000000 --- a/.aicoe-ci.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -# Setup and configuring aicoe-ci with configuration file `.aicoe-ci.yaml` -# Example `.aicoe-ci.yaml` with a full list of config options is available -# here: https://github.com/AICoE/aicoe-ci/blob/master/docs/.aicoe-ci.yaml -check: -# Uncomment following line to build a public image of this repo -# - thoth-build -# Uncomment following lines to build a public image of this repo -# build: -# build-stratergy: Source -# build-source-script: "image:///opt/app-root/builder" -# base-image: quay.io/thoth-station/s2i-custom-notebook:latest -# registry: quay.io -# registry-org: aicoe -# registry-project: -# registry-secret: aicoe-pusher-secret diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index 7e6167c..0000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1 +0,0 @@ -* @durandom @tumido diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 3d1eed3..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,29 +0,0 @@ -# Bug Report - ---- - -name: Bug report -about: Create a report to help us improve -labels: bug - ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: - -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Additional context** -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 1073ae8..0000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,21 +0,0 @@ -# Feature Request - ---- - -name: Feature request -about: Suggest an idea for this project -labels: enhancement - ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. - -**Additional context** -Add any other context or screenshots about the feature request here. diff --git a/.github/ISSUE_TEMPLATE/major-release.md b/.github/ISSUE_TEMPLATE/major-release.md deleted file mode 100644 index 8c27683..0000000 --- a/.github/ISSUE_TEMPLATE/major-release.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -name: Major release -about: Create a new major release -title: New major release -assignees: "sesheta" -labels: bot ---- - -Hey, Kebechet! - -Create a new major release, please. - -## Important Notes - -- _If [Khebut GitHub App Bot](https://github.com/apps/khebhut) is installed, this issue will trigger a major release. The bot will open a Pull Request to update the CHANGELOG, fix the opened issue and create a tag._ - -- _Only users that are allowed to release (a.k.a. maintainers specified in the .thoth.yaml file) can open the issue, otherwise bot will reject them, commenting and closing the issue. If [AICoE CI GitHub App](https://github.com/apps/aicoe-ci) is installed, once the pull request is merged and a new tag is created by the bot, the pipeline to build and push image starts._ diff --git a/.github/ISSUE_TEMPLATE/minor-release.md b/.github/ISSUE_TEMPLATE/minor-release.md deleted file mode 100644 index 0b46c06..0000000 --- a/.github/ISSUE_TEMPLATE/minor-release.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -name: Minor release -about: Create a new minor release -title: New minor release -assignees: "sesheta" -labels: bot ---- - -Hey, Kebechet! - -Create a new minor release, please. - -## Important Notes - -- _If [Khebut GitHub App Bot](https://github.com/apps/khebhut) is installed, this issue will trigger a minor release. The bot will open a Pull Request to update the CHANGELOG, fix the opened issue and create a tag._ - -- _Only users that are allowed to release (a.k.a. maintainers specified in the .thoth.yaml file) can open the issue, otherwise bot will reject them, commenting and closing the issue. If [AICoE CI GitHub App](https://github.com/apps/aicoe-ci) is installed, once the pull request is merged and a new tag is created by the bot, the pipeline to build and push image starts._ diff --git a/.github/ISSUE_TEMPLATE/patch-release.md b/.github/ISSUE_TEMPLATE/patch-release.md deleted file mode 100644 index 9e76b35..0000000 --- a/.github/ISSUE_TEMPLATE/patch-release.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -name: Patch release -about: Create a new patch release -title: New patch release -assignees: "sesheta" -labels: bot ---- - -Hey, Kebechet! - -Create a new patch release, please. - -## Important Notes - -- _If [Khebut GitHub App Bot](https://github.com/apps/khebhut) is installed, this issue will trigger a patch release. The bot will open a Pull Request to update the CHANGELOG, fix the opened issue and create a tag._ - -- _Only users that are allowed to release (a.k.a. maintainers specified in the .thoth.yaml file) can open the issue, otherwise bot will reject them, commenting and closing the issue. If [AICoE CI GitHub App](https://github.com/apps/aicoe-ci) is installed, once the pull request is merged and a new tag is created by the bot, the pipeline to build and push image starts._ diff --git a/.github/ISSUE_TEMPLATE/redeliver_container_image.md b/.github/ISSUE_TEMPLATE/redeliver_container_image.md deleted file mode 100644 index a6018b3..0000000 --- a/.github/ISSUE_TEMPLATE/redeliver_container_image.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -name: Deliver Container Image -about: build a git tag and push it as a container image to quay -title: Deliver Container Image -assignees: sesheta -labels: bot ---- - -Hey, AICoE-CI! - -Please build and deliver the following git tag: - -Tag: x.y.z - -## Important Notes - -- _If the tag exists and [AICoE CI GitHub App](https://github.com/apps/aicoe-ci) is installed, this issue will retrigger the pipeline to build from tag and push image container image. It should be used if the pipeline triggered with the {major|minor|patch} release failed for any reason._ diff --git a/.github/PULL_REQUEST_TEMPLATE/POLISH_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE/POLISH_TEMPLATE.md deleted file mode 100644 index f79b083..0000000 --- a/.github/PULL_REQUEST_TEMPLATE/POLISH_TEMPLATE.md +++ /dev/null @@ -1,34 +0,0 @@ -# Polish Notebook(s) - ---- - -name: Polish Notebook(s) -about: Finalize notebooks prior to publishing or promoting - ---- - -## Related Issues and Dependencies - -… - -## The following checklist items have been completed for each notebook in this PR - -- [ ] Proofread by other team member for grammar and spelling -- [ ] Proofread by other team member for coherence and reproducibility (does the analysis make sense as you read through the code and markdown from top to bottom?) -- [ ] Links checked and redirect correctly -- [ ] There is a top markdown cell describing what the notebook does -- [ ] There is a concluding markdown cell that summarizes the findings and outlines any next steps -- [ ] All plots are the same size -- [ ] All plots use seaborn (unless a specific functionality requires a different package) -- [ ] All plots have a title, labeled axis, and some written description of the insights uncovered in the graph -- [ ] Assuming correct environment, clicking "run all" works without error -- [ ] All cells have been run and their output is displayed -- [ ] Markdown headers are used to break up different sections -- [ ] No error or warning messages are present in the outputs -- [ ] All outputs are truncated to the minimum size required for explanation. No more than 20 rows. -- [ ] Cell execution counts are in order (a working "run all" was performed just before PR) -- [ ] All pre-commit checks pass - -## Additional context - - diff --git a/.github/PULL_REQUEST_TEMPLATE/SIMPLE_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE/SIMPLE_TEMPLATE.md deleted file mode 100644 index 9446e14..0000000 --- a/.github/PULL_REQUEST_TEMPLATE/SIMPLE_TEMPLATE.md +++ /dev/null @@ -1,20 +0,0 @@ -# Template - -## Related Issues and Dependencies - -… - -## This introduces a breaking change - -- [ ] Yes -- [ ] No - - - -## This Pull Request implements - -… Explain your changes. - -## Description - - diff --git a/.prow.yaml b/.prow.yaml deleted file mode 100644 index 5b57682..0000000 --- a/.prow.yaml +++ /dev/null @@ -1,21 +0,0 @@ ---- -presubmits: - - name: pre-commit - decorate: true - skip_report: false - always_run: true - context: aicoe-ci/prow/pre-commit - spec: - containers: - - image: quay.io/thoth-station/thoth-precommit-py38:v0.12.8 - command: - - "pre-commit" - - "run" - - "--all-files" - resources: - requests: - memory: "500Mi" - cpu: "300m" - limits: - memory: "1Gi" - cpu: "500m" diff --git a/.thoth.yaml b/.thoth.yaml deleted file mode 100644 index e54a21a..0000000 --- a/.thoth.yaml +++ /dev/null @@ -1,27 +0,0 @@ ---- -host: khemenu.thoth-station.ninja -tls_verify: false -requirements_format: pipenv - -runtime_environments: - - name: rhel:8 - operating_system: - name: rhel - version: "8" - python_version: "3.8" - recommendation_type: latest - -managers: - - name: pipfile-requirements - - name: update - configuration: - labels: [bot] - - name: info - - name: version - configuration: - maintainers: - - tumido - assignees: - - sesheta - labels: [bot] - changelog_file: true diff --git a/README.md b/README.md deleted file mode 100644 index dd1cb76..0000000 --- a/README.md +++ /dev/null @@ -1,33 +0,0 @@ -# ITR Data Pipeline - -The OS-Climate project is building a suite of Portfolio Alignment tools, the first of which is an [Implied Temperature Rise (ITR)](https://github.com/os-climate/ITR) tool. The need for climate-aligned -investment tools has been obvious for some time and is articulated clearly in this [Manifesto](https://www.bankofengland.co.uk/news/2019/april/open-letter-on-climate-related-financial-risks) published -by Governor of Bank of England Mark Carney, Governor of Banque de France François Villeroy de Galhau and Chair of the Network for Greening the Financial Services Frank Elderson. Subsequently a working -group developed methodology for creating a Temperature Alignment score based on a company's usage of their fair (or not) share of the remaining global carbon budget. The ITR tool calculates those -scores based on sector benchmarks, corporate production, emissions, emissions targets, and other factors. - -This repository contains code for generating data that can be used to demonstrate and evaluate the ITR tool using public data. (The tool is designed so that users can use their own data, including -privately developed and proprietary data.) - -The notebook [OECM-benchmark-ingest](notebooks/OECM-benchmark-ingest.ipynb) transforms source data from the [OECM version 2 benchmark](https://www.oneearth.org/updated-one-earth-climate-model/) into -JSON source that can be ingested by the ITR tool. Presently 14 sectors are supported (with more coming): - -- Energy (Oil & Gas) -- Utilities (Power, Gas, Combined) -- Buildings (Commercial and Residential) -- Construction -- Materials (Concrete, Aluminum, Steel) -- Road Transport (Passenger Vehicles and Freight) -- Chemical Industry -- Textiles and Leather - -A logical (and welcomed) next step would be to curate this data within our Trino database (with proper metedata descriptions). - -The notebook [ITR-data-production](ITR-data-production.ipynb) synthesizes a set of corporate data from a variety of public sources, including [GLEIF](https://www.gleif.org/en) legal entity -identifiers, [SEC financial disclosures](https://www.sec.gov/edgar/searchedgar/companysearch), [US Census data](https://www.census.gov/data.html), [RMI-curated production -data](https://utilitytransitionhub.rmi.org/data-download/), and some hand-curated sources as well. - -Most importantly, this pipeline puts the financial, production, emissions, and other data into Trino so that the ITR can access it via the [Data Commons](https://github.com/os-climate/os_c_data_commons). - -If you have questions, please file [Issues](https://github.com/os-climate/itr-data-pipeline/issues). If you have answers, please contribute [Pull -Requests](https://github.com/os-climate/itr-data-pipeline/pulls)! diff --git a/mypy.ini b/mypy.ini deleted file mode 100644 index 976ba02..0000000 --- a/mypy.ini +++ /dev/null @@ -1,2 +0,0 @@ -[mypy] -ignore_missing_imports = True diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 5d99124..0000000 --- a/requirements.txt +++ /dev/null @@ -1,22 +0,0 @@ -iam-units>=2022.10.27 -jupyterlab>=4.1.5 -numpy==1.24.3 -openpyxl>=3.1.2 -openscm-units==0.5.2 -osc-ingest-tools>=0.5.2 -pandas>=2.2.1 -Pint>=0.23 -Pint-Pandas>=0.5 -pre-commit>=3.7.0 -pytest==7.3.2 -python-dotenv>=1.0.0 -setuptools>=65.7.0 -sphinx<8,>=6 -sphinx-autoapi>=2.0.1 -sphinx-autodoc-typehints -sphinx-rtd-theme==1.3.0 -SQLAlchemy>=2.0 -tables>=3.8.0 -trino==0.328.0 -wheel>=0.43.0 -xlrd==2.0.1 diff --git a/test_environment.py b/test_environment.py deleted file mode 100644 index b636fca..0000000 --- a/test_environment.py +++ /dev/null @@ -1,22 +0,0 @@ -import sys - -REQUIRED_PYTHON = "python3" - - -def main(): - system_major = sys.version_info.major - if REQUIRED_PYTHON == "python": - required_major = 2 - elif REQUIRED_PYTHON == "python3": - required_major = 3 - else: - raise ValueError(f"Unrecognized python interpreter: {REQUIRED_PYTHON}") - - if system_major != required_major: - raise TypeError("This project requires Python {}. Found: Python {}".format(required_major, sys.version)) - else: - print(">>> Development environment passes all tests!") - - -if __name__ == "__main__": - main()