Repository: Preocts/secretbox (language: python)

Issue:
Update README to use .get() over .values.get()
This was overlooked when `.get()` was added.


Discussion / hints:

Fix patch:
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 5a672ac..65d3693 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -17,8 +17,7 @@ development of the project!
 
 Create your own fork of this repo that you will make your changes on.
 
-See the [Developer Installation Document](docs/development.md) for installation
-instructions.
+See the [README.md](README.md) for installation instructions.
 
 ## Creating your feature
 
diff --git a/README.md b/README.md
index 76fcbb4..5377e0f 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,6 @@
 
 [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/Preocts/python-template/main.svg)](https://results.pre-commit.ci/latest/github/Preocts/python-template/main)
 [![Python Tests](https://github.com/Preocts/secretbox/actions/workflows/python-tests.yml/badge.svg)](https://github.com/Preocts/secretbox/actions/workflows/python-tests.yml)
-[![Coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/Preocts/f26cb21234ff10087c74b977705af024/raw/secretbox-main)](https://nedbatchelder.com/blog/202209/making_a_coverage_badge.html)
 
 # secretbox
 
@@ -60,7 +59,7 @@ optional package for your deploy.*
 
 This loads the system environ and the `.env` from the current working directory
 into the class state for quick reference. Loaded secrets can be accessed from
-the `.values` property or from other methods such as `os.getenviron()`.
+the `.get()` method or from other methods such as `os.getenviron()`.
 
 ```python
 from secretbox import SecretBox
@@ -70,7 +69,7 @@ secrets = SecretBox(auto_load=True)
 
 def main() -> int:
     """Main function"""
-    my_sevice_password = secrets.values.get("SERVICE_PW")
+    my_sevice_password = secrets.get("SERVICE_PW")
     # More code
     return 0
 
@@ -105,7 +104,7 @@ def main() -> int:
         secrets.EnvFileLoader("sandbox/.override_env"),
     )
 
-    my_sevice_password = secrets.values.get("SERVICE_PW")
+    my_sevice_password = secrets.get("SERVICE_PW")
     # More code
     return 0
 
@@ -130,7 +129,7 @@ secrets.run()
 
 def main() -> int:
     """Main function"""
-    my_sevice_password = secrets.values.get("SERVICE_PW")
+    my_sevice_password = secrets.get("SERVICE_PW")
     # More code
     return 0
 
@@ -391,7 +390,7 @@ $ pre-commit run --all-files
 Run tests:
 
 ```console
-$ tox [-r] [-e py3x]
+$ tox
 ```
 
 Build dist:
@@ -442,11 +441,10 @@ This repo has a Makefile with some quality of life scripts if the system
 supports `make`.  Please note there are no checks for an active `venv` in the
 Makefile.
 
-| PHONY         | Description                                                                |
-| ------------- | -------------------------------------------------------------------------- |
-| `init`        | Update pip to newest version                                               |
-| `install`     | install the project                                                        |
-| `install-dev` | install development/test requirements and project as editable install      |
-| `upgrade-dev` | update all dependencies, regenerate requirements.txt (disabled by default) |
-| `build-dist`  | Build source distribution and wheel distribution                           |
-| `clean`       | Deletes build, tox, coverage, pytest, mypy, cache, and pyc artifacts       |
+| PHONY         | Description                                                           |
+| ------------- | --------------------------------------------------------------------- |
+| `init`        | Update pip to newest version                                          |
+| `install`     | install the project                                                   |
+| `install-dev` | install development/test requirements and project as editable install |
+| `build-dist`  | Build source distribution and wheel distribution                      |
+| `clean`       | Deletes build, tox, coverage, pytest, mypy, cache, and pyc artifacts  |
diff --git a/pyproject.toml b/pyproject.toml
index fc7f964..82c45d6 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -45,9 +45,6 @@ aws = [
 
 [project.urls]
 homepage = "https://github.com/Preocts/secretbox"
-documentation = "https://github.com/Preocts/secretbox/README.md"
-repository = "https://github.com/Preocts/secretbox"
-# changelog = ""
 
 [tool.setuptools.package-data]
 "secretbox" = ["py.typed"]
@@ -92,7 +89,6 @@ exclude_lines =[
     "if __name__ == .__main__.:",
     "\\.\\.\\.",
 ]
-ignore_errors = true
 
 
 # This is ignored by flake8, here in case they decide to add it in the future
@@ -127,7 +123,7 @@ deps =
     .[aws]
     mypy
 commands =
-    mypy -p secretbox
+    mypy -p secretbox --no-incremental
 
 [testenv:pre-commit]
 skip_install = true


Test patch:
diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml
index ff8856f..52567bd 100644
--- a/.github/workflows/python-tests.yml
+++ b/.github/workflows/python-tests.yml
@@ -24,6 +24,7 @@ jobs:
           - "3.8"
           - "3.9"
           - "3.10"
+          - "3.11"
 
     steps:
       - name: "Repo checkout"
@@ -78,31 +79,6 @@ jobs:
           echo "TOTAL=$TOTAL" >> $GITHUB_ENV
           echo "### Total coverage: ${TOTAL}%" >> $GITHUB_STEP_SUMMARY
 
-      - name: "Capture repo name"
-        env:
-          REF_NAME: ${{ github.ref_name }}
-        run: |
-          echo "REPO_NAME=${REF_NAME//\//-}" >> $GITHUB_ENV
-
-      # https://nedbatchelder.com/blog/202209/making_a_coverage_badge.html
-      # Modified to be a little more portable, filename is unique to branch and repo
-      - name: "Make badge"
-        env:
-          BADGE_TOKEN: "${{ secrets.COV_BADGE_TOKEN }}"
-          GIST_ID: "${{ secrets.COV_BADGE_GIST }}"
-          FILENAME: "${{ github.event.repository.name }}-${{ env.REPO_NAME }}"
-        if: "${{ env.BADGE_TOKEN != '' }} && ${{ env.GIST_ID }}"
-        uses: "schneegans/dynamic-badges-action@v1.6.0"
-        with:
-          auth: "${{ env.BADGE_TOKEN }}"
-          gistID: "${{ env.GIST_ID }}"
-          filename: "${{ env.FILENAME }}"
-          label: "Coverage"
-          message: "${{ env.TOTAL }}%"
-          minColorRange: "50"
-          maxColorRange: "90"
-          valColorRange: "${{ env.TOTAL }}"
-
   ci-success:
     name: "CI steps all completed successfully"
     needs: "coverage-compile"