From 129b293b08e01fa6d6e45d7ff1078af432e06111 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sondre=20Lilleb=C3=B8=20Gundersen?= Date: Wed, 23 Nov 2022 21:25:09 +0100 Subject: [PATCH 1/2] feat: Officially support Python 3.11/Django 4.1 --- .github/workflows/test.yml | 6 ++++-- pyproject.toml | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3a719b1..454cbb8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,12 +29,14 @@ jobs: strategy: fail-fast: false matrix: - python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11.0-rc.1" ] - django-version: [ "3.1.4", "3.2", "4.0" ] + python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11.0" ] + django-version: [ "3.1", "3.2", "4.0", "4.1" ] exclude: # Django v4 drops Python 3.7 support - django-version: 4.0 python-version: 3.7 + - django-version: 4.1 + python-version: 3.7 steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 diff --git a/pyproject.toml b/pyproject.toml index 1bc689e..cb6f617 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,7 @@ classifiers = [ 'Framework :: Django :: 3.1', 'Framework :: Django :: 3.2', 'Framework :: Django :: 4.0', + 'Framework :: Django :: 4.1', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', @@ -29,6 +30,7 @@ classifiers = [ 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Internet :: WWW/HTTP :: WSGI', From a412ee5d15d2eb212dfb96b03ee897d59a17236c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sondre=20Lilleb=C3=B8=20Gundersen?= Date: Wed, 23 Nov 2022 21:27:13 +0100 Subject: [PATCH 2/2] chore: Update pre-commit hooks --- .pre-commit-config.yaml | 12 ++++++------ setup.cfg | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c4ae53d..07d2073 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,11 +1,11 @@ repos: - repo: https://github.com/ambv/black - rev: 22.6.0 + rev: 22.10.0 hooks: - id: black args: ['--quiet'] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: check-case-conflict - id: end-of-file-fixer @@ -15,8 +15,8 @@ repos: - id: check-merge-conflict - id: detect-private-key - id: double-quote-string-fixer - - repo: https://gitlab.com/pycqa/flake8 - rev: 3.9.2 + - repo: https://github.com/pycqa/flake8 + rev: 6.0.0 hooks: - id: flake8 additional_dependencies: [ @@ -31,7 +31,7 @@ repos: ] args: ['--enable-extensions=G'] - repo: https://github.com/asottile/pyupgrade - rev: v2.37.3 + rev: v3.2.2 hooks: - id: pyupgrade args: ["--py36-plus"] @@ -43,6 +43,6 @@ repos: - id: isort files: 'tests/.*' - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.971 + rev: v0.991 hooks: - id: mypy diff --git a/setup.cfg b/setup.cfg index e205183..82aa29a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -12,7 +12,7 @@ ignore = D401 # Type annotation for `self` TYP101 - TYP102 # for cls + TYP102 # Missing docstring in __init__ D107 # Missing docstring in public package