Skip to content

Commit

Permalink
Merge pull request Intility#107 from Intility/python/3.11-support
Browse files Browse the repository at this point in the history
chore: support python3.11
  • Loading branch information
JonasKs committed Nov 10, 2022
2 parents b38b9ab + ec6014a commit 0989ac5
Show file tree
Hide file tree
Showing 10 changed files with 774 additions and 700 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"

- name: Install poetry
uses: snok/install-poetry@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11.0"
- name: Install poetry
uses: snok/install-poetry@v1
with:
Expand All @@ -24,7 +24,7 @@ jobs:
uses: actions/cache@v3.0.11
with:
path: .venv
key: venv-${{ runner.os }}-3.10-${{ hashFiles('**/poetry.lock') }}-0
key: venv-${{ runner.os }}-3.11.0-${{ hashFiles('**/poetry.lock') }}-0
- name: Install dependencies
run: poetry install
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_to_pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.11
- uses: snok/install-poetry@v1
- name: Publish to pypi
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.11
- uses: actions/cache@v3.0.11
with:
path: |
Expand All @@ -27,8 +27,8 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.8", "3.9", "3.10" ]
fastapi-version: [ "0.68.0", "0.70.0", "0.71.0" ]
python-version: [ "3.8.13", "3.9.15", "3.10.8", "3.11.0" ]
fastapi-version: [ "0.68.0", "0.70.0", "0.71.0", "0.86.0"]
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
exclude: README.md
repos:
- repo: https://github.com/ambv/black
rev: '22.3.0'
rev: '22.10.0'
hooks:
- id: black
args: ['--quiet']
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
rev: v4.3.0
hooks:
- id: check-case-conflict
- id: end-of-file-fixer
Expand All @@ -32,7 +32,7 @@ repos:
]
args: ['--enable-extensions=G']
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.1
rev: v3.2.1
hooks:
- id: pyupgrade
args: ["--py36-plus"]
Expand All @@ -41,7 +41,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v0.942"
rev: "v0.990"
hooks:
- id: mypy
exclude: "test_*"
Expand Down
2 changes: 1 addition & 1 deletion fastapi_azure_auth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
SingleTenantAzureAuthorizationCodeBearer as SingleTenantAzureAuthorizationCodeBearer,
)

__version__ = '3.5.0'
__version__ = '3.5.1'
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Global options
[mypy]
python_version = 3.10
python_version = 3.11
# flake8-mypy expects the two following for sensible formatting
show_column_numbers = True
show_error_context = False
Expand Down
Loading

0 comments on commit 0989ac5

Please sign in to comment.