From 31f87b264da8f22cb376b12ee89a59415688baf8 Mon Sep 17 00:00:00 2001 From: "upx3 (CFA)" <127630341+AFg6K7h4fhy2@users.noreply.github.com> Date: Wed, 18 Dec 2024 13:31:30 -0500 Subject: [PATCH 1/2] ELSI Questions Batch 01 (#48) * initial question edits * add some initial changes * post meeting question updates --- assets/misc/notes.qmd | 49 +++++++++++++++++++ website/_quarto.yml | 13 ++++- .../introduction.qmd | 0 website/q_ELSI/q_ELSI_01.qmd | 27 ++++++++++ website/q_ELSI/q_ELSI_02.qmd | 7 +++ website/q_ELSI/q_ELSI_03.qmd | 28 +++++++++++ website/q_ELSI/q_ELSI_04.qmd | 13 +++++ website/q_ELSI/q_ELSI_05.qmd | 7 +++ website/q_ELSI/q_ELSI_06.qmd | 15 ++++++ website/q_ELSI/q_ELSI_07.qmd | 15 ++++++ website/q_ELSI/q_ELSI_08.qmd | 12 +++++ website/q_ELSI/q_ELSI_09.qmd | 10 ++++ website/q_ELSI/q_ELSI_10.qmd | 22 +++++++++ website/question_group_01/question_g01_01.qmd | 1 - 14 files changed, 216 insertions(+), 3 deletions(-) create mode 100644 assets/misc/notes.qmd rename website/{question_group_01 => q_ELSI}/introduction.qmd (100%) create mode 100644 website/q_ELSI/q_ELSI_01.qmd create mode 100644 website/q_ELSI/q_ELSI_02.qmd create mode 100644 website/q_ELSI/q_ELSI_03.qmd create mode 100644 website/q_ELSI/q_ELSI_04.qmd create mode 100644 website/q_ELSI/q_ELSI_05.qmd create mode 100644 website/q_ELSI/q_ELSI_06.qmd create mode 100644 website/q_ELSI/q_ELSI_07.qmd create mode 100644 website/q_ELSI/q_ELSI_08.qmd create mode 100644 website/q_ELSI/q_ELSI_09.qmd create mode 100644 website/q_ELSI/q_ELSI_10.qmd delete mode 100644 website/question_group_01/question_g01_01.qmd diff --git a/assets/misc/notes.qmd b/assets/misc/notes.qmd new file mode 100644 index 0000000..a3d94da --- /dev/null +++ b/assets/misc/notes.qmd @@ -0,0 +1,49 @@ + + +What traits can be modified? + +* Intelligence +* Longevity +* Height +* Eye Color +* Skin Color +* Physical Strength +* Disease Resistance +* Cardiovascular Health +* Metabolism +* Pain Tolerance +* Depression/Anxiety +* Visual Acuity +* Hair Color/Texture +* Resistance To Addiction +* Empathy +* Aggression +* Morality + +Societal implications (not including accessibility, demographic, or healthcare related topics) include: + +* Income inequality +* National productivity / success +* Election concern +* National concerns (e.g. Gallup) +* Parental expectations +* Generational differences / stratification +* Public trust in institutions / science +* Religious influence / extent +* Discrimination + * In workplace +* Misuses? +* Social pressures for usage +* Marketing budgets by IVF, genetic modification + +Ethical implications include: + +* People's permissibility of a technology +* Changes in human rights (freedom from, freedom to) +* Changes in moral status +* PEW research approvals + +In speaking to funder, convert critiques in speaking. + + +Regulatory diff --git a/website/_quarto.yml b/website/_quarto.yml index 6f24c6f..9f9b654 100644 --- a/website/_quarto.yml +++ b/website/_quarto.yml @@ -24,8 +24,17 @@ book: - front_matter/feedback.qmd - part: "Q: Ethical, Legal, & Societal Implications" chapters: - - question_group_01/introduction.qmd - - question_group_01/question_g01_01.qmd + - q_ELSI/introduction.qmd + - q_ELSI/q_ELSI_01.qmd + - q_ELSI/q_ELSI_02.qmd + - q_ELSI/q_ELSI_03.qmd + - q_ELSI/q_ELSI_04.qmd + - q_ELSI/q_ELSI_05.qmd + - q_ELSI/q_ELSI_06.qmd + - q_ELSI/q_ELSI_07.qmd + - q_ELSI/q_ELSI_08.qmd + - q_ELSI/q_ELSI_09.qmd + - q_ELSI/q_ELSI_10.qmd - part: "Q: Technological Advancements & Clinical Applications" - part: "Q: Regulatory & Policy Developments" - part: "Q: Accessibility & Demographic Shifts" diff --git a/website/question_group_01/introduction.qmd b/website/q_ELSI/introduction.qmd similarity index 100% rename from website/question_group_01/introduction.qmd rename to website/q_ELSI/introduction.qmd diff --git a/website/q_ELSI/q_ELSI_01.qmd b/website/q_ELSI/q_ELSI_01.qmd new file mode 100644 index 0000000..e512c70 --- /dev/null +++ b/website/q_ELSI/q_ELSI_01.qmd @@ -0,0 +1,27 @@ +# When will the first law be enacted anywhere in the world that legally permits the genetic modification of the following human traits? + +* Intelligence +* Longevity +* Height +* Eye Color +* Skin Color +* Physical Strength +* Disease Resistance +* Cardiovascular Health +* Metabolism +* Pain Tolerance +* Depression/Anxiety +* Visual Acuity +* Hair Color/Texture +* Resistance To Addiction +* Empathy +* Aggression +* Morality + +## Background Information + +Any legal doctrine must be explicit permissive of the genetic modification. + +### Fine Print + +## Resolution Criteria diff --git a/website/q_ELSI/q_ELSI_02.qmd b/website/q_ELSI/q_ELSI_02.qmd new file mode 100644 index 0000000..6cbe347 --- /dev/null +++ b/website/q_ELSI/q_ELSI_02.qmd @@ -0,0 +1,7 @@ +# When will the next individual(s) be imprisoned for genetically modifying a person or people? + +## Background Information + +### Fine Print + +## Resolution Criteria diff --git a/website/q_ELSI/q_ELSI_03.qmd b/website/q_ELSI/q_ELSI_03.qmd new file mode 100644 index 0000000..070328d --- /dev/null +++ b/website/q_ELSI/q_ELSI_03.qmd @@ -0,0 +1,28 @@ +# How many lawsuits will be filed in the United States against companies offering in-vitro fertilization (IVF) services that screen for the following traits by 2030? + +# How many lawsuits will be filed in the United States against companies offering in-vitro fertilization (IVF) services that screen for the following traits by 2050? + +* Intelligence +* Longevity +* Height +* Eye Color +* Skin Color +* Physical Strength +* Disease Resistance +* Cardiovascular Health +* Metabolism +* Pain Tolerance +* Depression/Anxiety +* Visual Acuity +* Hair Color/Texture +* Resistance To Addiction +* Empathy +* Aggression +* Morality + + +## Background Information + +### Fine Print + +## Resolution Criteria diff --git a/website/q_ELSI/q_ELSI_04.qmd b/website/q_ELSI/q_ELSI_04.qmd new file mode 100644 index 0000000..2e068c4 --- /dev/null +++ b/website/q_ELSI/q_ELSI_04.qmd @@ -0,0 +1,13 @@ +# How many humans globally will be prenatally genetically modified in the following years? + +* 2030 +* 2040 +* 2050 +* 2075 +* 2100 + +## Background Information + +### Fine Print + +## Resolution Criteria diff --git a/website/q_ELSI/q_ELSI_05.qmd b/website/q_ELSI/q_ELSI_05.qmd new file mode 100644 index 0000000..ad3e537 --- /dev/null +++ b/website/q_ELSI/q_ELSI_05.qmd @@ -0,0 +1,7 @@ +# When will the next individual(s) be fined or imprisoned for seeking to have their newborn genetically modified? + +## Background Information + +### Fine Print + +## Resolution Criteria diff --git a/website/q_ELSI/q_ELSI_06.qmd b/website/q_ELSI/q_ELSI_06.qmd new file mode 100644 index 0000000..2e2ea4a --- /dev/null +++ b/website/q_ELSI/q_ELSI_06.qmd @@ -0,0 +1,15 @@ +# Which nations will have over 1000 genetically modified newborns by the year 2050? + +# Which nations will have over 1000 genetically modified newborns by the year 2040? + +# Which nations will have over 1000 genetically modified newborns by the year 2075? + +# Which nations will have over 1000 genetically modified newborns by the year 2100? + +* Nations + +## Background Information + +### Fine Print + +## Resolution Criteria diff --git a/website/q_ELSI/q_ELSI_07.qmd b/website/q_ELSI/q_ELSI_07.qmd new file mode 100644 index 0000000..b8f64ab --- /dev/null +++ b/website/q_ELSI/q_ELSI_07.qmd @@ -0,0 +1,15 @@ +# Which nations will have over 5% of their newborns genetically modified by the year 2050? + +# Which nations will have over 5% genetically modified newborns by the year 2040? + +# Which nations will have over 5% genetically modified newborns by the year 2075? + +# Which nations will have over 5% genetically modified newborns by the year 2100? + +[* Nations](https://en.wikipedia.org/wiki/OECD#Member_countries) + +## Background Information + +### Fine Print + +## Resolution Criteria diff --git a/website/q_ELSI/q_ELSI_08.qmd b/website/q_ELSI/q_ELSI_08.qmd new file mode 100644 index 0000000..e3199d2 --- /dev/null +++ b/website/q_ELSI/q_ELSI_08.qmd @@ -0,0 +1,12 @@ + + +# Income Inequality Between + +* IVF Individual +* Genetically edited newborns + +## Background Information + +### Fine Print + +## Resolution Criteria diff --git a/website/q_ELSI/q_ELSI_09.qmd b/website/q_ELSI/q_ELSI_09.qmd new file mode 100644 index 0000000..eb728b0 --- /dev/null +++ b/website/q_ELSI/q_ELSI_09.qmd @@ -0,0 +1,10 @@ + + +# How many companies will there be offering IVF services in the United States in the following years? + + +## Background Information + +### Fine Print + +## Resolution Criteria diff --git a/website/q_ELSI/q_ELSI_10.qmd b/website/q_ELSI/q_ELSI_10.qmd new file mode 100644 index 0000000..c7e6c28 --- /dev/null +++ b/website/q_ELSI/q_ELSI_10.qmd @@ -0,0 +1,22 @@ + + + +# How many companies will there be offering prenatal genetic modification services in the United States in the following years? + +# Revenue Totals In The Following Years For IVF Companies? + +# Revenue Totals In The Following Years For Polygenic Screening Companies? + +# Revenue Totals In The Following Years For IVF Companies? + +# What is average of IVF + +# What is average of Polygenic Screening + +# What is the cost average of using genetic modification services in the United States in 2020 US Inflation Adjusted USD. + +## Background Information + +### Fine Print + +## Resolution Criteria diff --git a/website/question_group_01/question_g01_01.qmd b/website/question_group_01/question_g01_01.qmd deleted file mode 100644 index dab7aaf..0000000 --- a/website/question_group_01/question_g01_01.qmd +++ /dev/null @@ -1 +0,0 @@ -# Question 01 From e878bb0ccc224e2ebcf891a00ebba86025f574f4 Mon Sep 17 00:00:00 2001 From: "upx3 (CFA)" <127630341+AFg6K7h4fhy2@users.noreply.github.com> Date: Wed, 18 Dec 2024 13:50:25 -0500 Subject: [PATCH 2/2] Clean `pre-commit` And `pyproject.toml` (#54) * minor update to pyproject toml; update precommit config file * remove action yaml * update labels * update pyproject toml * do not use R precommit hook for now --- .github/actions/pre-commit/action.yaml | 16 ---- .github/workflows/pre-commit.yaml | 6 +- .lintr | 2 + .pre-commit-config.yaml | 121 ++++++++++++++++++++++--- labels.toml | 5 + pyproject.toml | 9 +- 6 files changed, 126 insertions(+), 33 deletions(-) delete mode 100644 .github/actions/pre-commit/action.yaml create mode 100644 .lintr diff --git a/.github/actions/pre-commit/action.yaml b/.github/actions/pre-commit/action.yaml deleted file mode 100644 index 6db4408..0000000 --- a/.github/actions/pre-commit/action.yaml +++ /dev/null @@ -1,16 +0,0 @@ -name: pre-commit -description: run pre-commit to enforce code standards -inputs: - extra_args: - description: options to pass to pre-commit run - required: false - default: '--all-files' -runs: - using: composite - steps: - - run: python -m pip install pre-commit - shell: bash - - run: python -m pip freeze --local - shell: bash - - run: pre-commit run --show-diff-on-failure --color=always ${{ inputs.extra_args }} - shell: bash diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index fc0c5c0..65947d3 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -9,6 +9,6 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 - - uses: ./.github/actions/pre-commit + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - uses: pre-commit/action@v3.0.1 diff --git a/.lintr b/.lintr new file mode 100644 index 0000000..6c2c005 --- /dev/null +++ b/.lintr @@ -0,0 +1,2 @@ +linters: linters_with_defaults(object_usage_linter = NULL) +encoding: "UTF-8" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9e90348..96b86eb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,52 +1,147 @@ +################################################################################ +# OVERVIEW +################################################################################ +# The following contains the pre-commit hooks for this repository, which are +# likely a modified version of the author's (AFg6K7h4fhy2) repository template. +# +# Links: +# +# Pre-commit: https://pre-commit.com/ +# The author's template: https://github.com/AFg6K7h4fhy2/AFg6K7h4fhy2-Template +# Supported hooks: https://github.com/pre-commit/pre-commit-hooks repos: ################################################################################ +# GENERAL +################################################################################ - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: + # prevent giant files from being committed. - id: check-added-large-files args: ["--maxkb=10000"] + # simply check whether files parse as valid + # python + - id: check-ast + # check for files with names that would + # conflict on a case-insensitive filesystem + # like MacOS HFS+ or Windows FAT. + - id: check-case-conflict + # checks for a common error of placing + # code before the docstring. + - id: check-docstring-first + # attempts to load all yaml files to + # verify syntax. - id: check-yaml + # allow yaml files which use the + # multi-document syntax args: ["--allow-multiple-documents"] + # attempts to load all TOML files to + # verify syntax. - id: check-toml + # makes sure files end in a newline and + # only a newline. - id: end-of-file-fixer + # replaces or checks mixed line ending. - id: mixed-line-ending + # verifies that test files are named + # correctly. + - id: name-tests-test + # ensure tests match test_.*\.py + args: ["--pytest-test-first"] + # checks that all your JSON files are pretty. + # "Pretty" here means that keys are sorted + # and indented. + - id: pretty-format-json + # automatically format json files; + # when autofixing, retain the original + # key ordering (instead of sorting + # the keys) + args: ["--autofix", "--no-sort-keys"] + # trims trailing whitespace. - id: trailing-whitespace + # checks that non-binary executables have + # a proper shebang. + - id: check-executables-have-shebangs + files: \.sh$ + # checks for the existence of private keys. + - id: detect-private-key +################################################################################ +# PYTHON ################################################################################ - repo: https://github.com/psf/black-pre-commit-mirror - rev: 24.4.2 + rev: 24.10.0 hooks: - - id: black-jupyter + - id: black args: ["--line-length", "79"] language_version: python3 - repo: https://github.com/PyCQA/isort rev: 5.13.2 hooks: - id: isort - args: ["--profile", "black", - "--line-length", "79"] -- repo: https://github.com/numpy/numpydoc - rev: v1.7.0 - hooks: - - id: numpydoc-validation + args: ["--profile", "black", "--line-length", "79"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.7 + rev: v0.8.2 hooks: - id: ruff args: ["--ignore=E741", "--ignore=E731", "--fix"] +# - repo: https://github.com/pre-commit/mirrors-mypy +# rev: v1.13.0 +# hooks: +# - id: mypy +################################################################################ +# R +################################################################################ +# - repo: https://github.com/lorenzwalthert/precommit +# rev: v0.4.3.9003 +# hooks: +# - id: style-files +# - id: lintr +################################################################################ +# MAKE FILES +################################################################################ +- repo: https://github.com/mrtazz/checkmake.git + rev: 0.2.2 + hooks: + - id: checkmake +################################################################################ +# SECURITY +################################################################################ +# - repo: https://github.com/gitleaks/gitleaks +# rev: v8.19.0 +# hooks: +# - id: gitleaks +# - repo: https://github.com/Yelp/detect-secrets +# rev: v1.5.0 +# hooks: +# # must first run +# # detect-secrets scan > .secrets.baseline +# - id: detect-secrets +# args: ["--baseline", ".secrets.baseline"] +# exclude: package.lock.json +################################################################################ +# GITHUB ACTIONS ################################################################################ - repo: https://github.com/rhysd/actionlint - rev: v1.7.1 + rev: v1.7.4 hooks: - id: actionlint ################################################################################ +# SPELLING +################################################################################ - repo: https://github.com/crate-ci/typos - rev: v1.21.0 + rev: typos-dict-v0.11.37 hooks: - id: typos args: ["--force-exclude"] ################################################################################ +# COMMIT MESSAGES +################################################################################ - repo: https://github.com/commitizen-tools/commitizen - rev: v3.27.0 + rev: v4.0.0 hooks: - id: commitizen +- repo: https://github.com/jorisroovers/gitlint + rev: v0.19.1 + hooks: + - id: gitlint ################################################################################ diff --git a/labels.toml b/labels.toml index e8ffa5d..da8192c 100644 --- a/labels.toml +++ b/labels.toml @@ -158,6 +158,11 @@ color = "cfd3d7" name = "visuals" description = "Adds or pertains to visualizations." +[warnings] +color = "cfd3d7" +name = "warnings" +description = "Adjustments to project to remove warnings." + [website] color = "cfd3d7" name = "website" diff --git a/pyproject.toml b/pyproject.toml index ed8ad22..b2dc5fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,13 @@ [tool.poetry] name = "genetic-evolution-tournament" version = "0.0.1" -description = "The Genetic Evolution Tournament." +description = "The Genetic Evolution Tournament (GET) is a Metaculus human judgment forecasting tournament established to generate forecasts and scenarios pertaining to the use of human genetic and reproductive technologies for treatment and enhancement." authors = ["AFg6K7h4fhy2 <127630341+AFg6K7h4fhy2@users.noreply.github.com>"] license = "Apache-2.0" package-mode = false +readme = "README.md" +repository = "https://github.com/AFg6K7h4fhy2/Genetic-Evolution-Tournament" +keywords = ["genetics", "tournament", "forecasting", "genetic-engineering", "human-enhancement", "human-judgment", "dna-technology"] [tool.poetry.dependencies] python = "^3.12" @@ -14,6 +17,10 @@ pre-commit = "^3.7.0" [tool.poetry.group.dev.dependencies] matplotlib = "^3.9.2" +[tool.poetry.urls] +"Repository Issues" = "https://github.com/Genetic-Evolution-Tournament/issues" +"Author Homepage" = "https://github.com/AFg6K7h4fhy2" + [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api"