Skip to content

Commit

Permalink
Upgrade to Python 3.11 (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccar authored Sep 25, 2023
1 parent a7175ae commit d7fdf82
Show file tree
Hide file tree
Showing 7 changed files with 792 additions and 779 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ on:

jobs:
test:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: |
echo "PYTHON_VERSION=$(cat .python-version)" >> $GITHUB_ENV
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Pipenv
Expand Down
6 changes: 3 additions & 3 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ persistent=yes

# Minimum Python version to use for version dependent checks. Will default to
# the version used to run pylint.
py-version=3.10
py-version=3.11

# Discover python modules and packages in the file system subtree.
recursive=no
Expand Down Expand Up @@ -302,8 +302,8 @@ max-complexity=10
[EXCEPTIONS]

# Exceptions that will emit a warning when caught.
overgeneral-exceptions=BaseException,
Exception
overgeneral-exceptions=builtins.BaseException,
builtins.Exception


[FORMAT]
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.10.8
3.11.4
6 changes: 3 additions & 3 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ requests = "*"
[dev-packages]
black = "*"
mypy = "*"
pylint = "*"
pylint = "2.17.5"
pytest = "*"
flake8 = "*"
pylint-quotes = "*"
Expand All @@ -23,7 +23,7 @@ python-dotenv = "*"
types-requests = "*"

[requires]
python_version = "3.10"
python_version = "3.11"

[pipenv]
allow_prereleases = false
allow_prereleases = true
1,547 changes: 780 additions & 767 deletions Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ On instantiation the function forwards the request on to Gov Notify, which is re

## Development

Local development uses Pipenv to manage the Python environment. Make sure you have Pipenv installed and are using Python version 3.10.
Local development uses Pipenv to manage the Python environment. Make sure you have Pipenv installed and are using Python version 3.11.

There are two environment variables required to run the function:

Expand Down

0 comments on commit d7fdf82

Please sign in to comment.